anthropic-sdk-beta 0.1.0.pre.beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +343 -0
- data/lib/anthropic/bedrock/client.rb +261 -0
- data/lib/anthropic/client.rb +107 -0
- data/lib/anthropic/errors.rb +192 -0
- data/lib/anthropic/internal/jsonl_stream.rb +26 -0
- data/lib/anthropic/internal/page.rb +109 -0
- data/lib/anthropic/internal/stream.rb +58 -0
- data/lib/anthropic/internal/transport/base_client.rb +473 -0
- data/lib/anthropic/internal/transport/pooled_net_requester.rb +193 -0
- data/lib/anthropic/internal/type/array_of.rb +128 -0
- data/lib/anthropic/internal/type/base_model.rb +380 -0
- data/lib/anthropic/internal/type/base_page.rb +46 -0
- data/lib/anthropic/internal/type/base_stream.rb +73 -0
- data/lib/anthropic/internal/type/boolean.rb +58 -0
- data/lib/anthropic/internal/type/converter.rb +247 -0
- data/lib/anthropic/internal/type/enum.rb +113 -0
- data/lib/anthropic/internal/type/hash_of.rb +148 -0
- data/lib/anthropic/internal/type/io_like.rb +75 -0
- data/lib/anthropic/internal/type/request_parameters.rb +49 -0
- data/lib/anthropic/internal/type/union.rb +216 -0
- data/lib/anthropic/internal/type/unknown.rb +62 -0
- data/lib/anthropic/internal/util.rb +755 -0
- data/lib/anthropic/internal.rb +8 -0
- data/lib/anthropic/models/anthropic_beta.rb +44 -0
- data/lib/anthropic/models/api_error_object.rb +25 -0
- data/lib/anthropic/models/authentication_error.rb +25 -0
- data/lib/anthropic/models/base64_image_source.rb +47 -0
- data/lib/anthropic/models/base64_pdf_source.rb +31 -0
- data/lib/anthropic/models/beta/beta_base64_image_source.rb +51 -0
- data/lib/anthropic/models/beta/beta_base64_pdf_block.rb +76 -0
- data/lib/anthropic/models/beta/beta_base64_pdf_source.rb +35 -0
- data/lib/anthropic/models/beta/beta_cache_control_ephemeral.rb +23 -0
- data/lib/anthropic/models/beta/beta_citation_char_location.rb +63 -0
- data/lib/anthropic/models/beta/beta_citation_char_location_param.rb +63 -0
- data/lib/anthropic/models/beta/beta_citation_content_block_location.rb +63 -0
- data/lib/anthropic/models/beta/beta_citation_content_block_location_param.rb +63 -0
- data/lib/anthropic/models/beta/beta_citation_page_location.rb +63 -0
- data/lib/anthropic/models/beta/beta_citation_page_location_param.rb +63 -0
- data/lib/anthropic/models/beta/beta_citations_config_param.rb +27 -0
- data/lib/anthropic/models/beta/beta_citations_delta.rb +46 -0
- data/lib/anthropic/models/beta/beta_content_block.rb +27 -0
- data/lib/anthropic/models/beta/beta_content_block_param.rb +33 -0
- data/lib/anthropic/models/beta/beta_content_block_source.rb +45 -0
- data/lib/anthropic/models/beta/beta_content_block_source_content.rb +23 -0
- data/lib/anthropic/models/beta/beta_image_block_param.rb +50 -0
- data/lib/anthropic/models/beta/beta_input_json_delta.rb +29 -0
- data/lib/anthropic/models/beta/beta_message.rb +143 -0
- data/lib/anthropic/models/beta/beta_message_delta_usage.rb +24 -0
- data/lib/anthropic/models/beta/beta_message_param.rb +59 -0
- data/lib/anthropic/models/beta/beta_message_tokens_count.rb +26 -0
- data/lib/anthropic/models/beta/beta_metadata.rb +28 -0
- data/lib/anthropic/models/beta/beta_model_info.rb +49 -0
- data/lib/anthropic/models/beta/beta_plain_text_source.rb +35 -0
- data/lib/anthropic/models/beta/beta_raw_content_block_delta.rb +29 -0
- data/lib/anthropic/models/beta/beta_raw_content_block_delta_event.rb +35 -0
- data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +55 -0
- data/lib/anthropic/models/beta/beta_raw_content_block_stop_event.rb +29 -0
- data/lib/anthropic/models/beta/beta_raw_message_delta_event.rb +71 -0
- data/lib/anthropic/models/beta/beta_raw_message_start_event.rb +29 -0
- data/lib/anthropic/models/beta/beta_raw_message_stop_event.rb +23 -0
- data/lib/anthropic/models/beta/beta_raw_message_stream_event.rb +31 -0
- data/lib/anthropic/models/beta/beta_redacted_thinking_block.rb +29 -0
- data/lib/anthropic/models/beta/beta_redacted_thinking_block_param.rb +29 -0
- data/lib/anthropic/models/beta/beta_signature_delta.rb +29 -0
- data/lib/anthropic/models/beta/beta_stop_reason.rb +24 -0
- data/lib/anthropic/models/beta/beta_text_block.rb +42 -0
- data/lib/anthropic/models/beta/beta_text_block_param.rb +43 -0
- data/lib/anthropic/models/beta/beta_text_citation.rb +25 -0
- data/lib/anthropic/models/beta/beta_text_citation_param.rb +25 -0
- data/lib/anthropic/models/beta/beta_text_delta.rb +29 -0
- data/lib/anthropic/models/beta/beta_thinking_block.rb +35 -0
- data/lib/anthropic/models/beta/beta_thinking_block_param.rb +35 -0
- data/lib/anthropic/models/beta/beta_thinking_config_disabled.rb +23 -0
- data/lib/anthropic/models/beta/beta_thinking_config_enabled.rb +38 -0
- data/lib/anthropic/models/beta/beta_thinking_config_param.rb +32 -0
- data/lib/anthropic/models/beta/beta_thinking_delta.rb +29 -0
- data/lib/anthropic/models/beta/beta_tool.rb +103 -0
- data/lib/anthropic/models/beta/beta_tool_bash_20241022.rb +38 -0
- data/lib/anthropic/models/beta/beta_tool_bash_20250124.rb +38 -0
- data/lib/anthropic/models/beta/beta_tool_choice.rb +33 -0
- data/lib/anthropic/models/beta/beta_tool_choice_any.rb +39 -0
- data/lib/anthropic/models/beta/beta_tool_choice_auto.rb +39 -0
- data/lib/anthropic/models/beta/beta_tool_choice_none.rb +25 -0
- data/lib/anthropic/models/beta/beta_tool_choice_tool.rb +46 -0
- data/lib/anthropic/models/beta/beta_tool_computer_use_20241022.rb +69 -0
- data/lib/anthropic/models/beta/beta_tool_computer_use_20250124.rb +69 -0
- data/lib/anthropic/models/beta/beta_tool_result_block_param.rb +85 -0
- data/lib/anthropic/models/beta/beta_tool_text_editor_20241022.rb +38 -0
- data/lib/anthropic/models/beta/beta_tool_text_editor_20250124.rb +38 -0
- data/lib/anthropic/models/beta/beta_tool_union.rb +31 -0
- data/lib/anthropic/models/beta/beta_tool_use_block.rb +41 -0
- data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +47 -0
- data/lib/anthropic/models/beta/beta_url_image_source.rb +29 -0
- data/lib/anthropic/models/beta/beta_url_pdf_source.rb +29 -0
- data/lib/anthropic/models/beta/beta_usage.rb +45 -0
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +315 -0
- data/lib/anthropic/models/beta/message_create_params.rb +395 -0
- data/lib/anthropic/models/beta/messages/batch_cancel_params.rb +34 -0
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +463 -0
- data/lib/anthropic/models/beta/messages/batch_delete_params.rb +34 -0
- data/lib/anthropic/models/beta/messages/batch_list_params.rb +71 -0
- data/lib/anthropic/models/beta/messages/batch_results_params.rb +34 -0
- data/lib/anthropic/models/beta/messages/batch_retrieve_params.rb +34 -0
- data/lib/anthropic/models/beta/messages/beta_deleted_message_batch.rb +34 -0
- data/lib/anthropic/models/beta/messages/beta_message_batch.rb +140 -0
- data/lib/anthropic/models/beta/messages/beta_message_batch_canceled_result.rb +23 -0
- data/lib/anthropic/models/beta/messages/beta_message_batch_errored_result.rb +29 -0
- data/lib/anthropic/models/beta/messages/beta_message_batch_expired_result.rb +23 -0
- data/lib/anthropic/models/beta/messages/beta_message_batch_individual_response.rb +42 -0
- data/lib/anthropic/models/beta/messages/beta_message_batch_request_counts.rb +60 -0
- data/lib/anthropic/models/beta/messages/beta_message_batch_result.rb +32 -0
- data/lib/anthropic/models/beta/messages/beta_message_batch_succeeded_result.rb +29 -0
- data/lib/anthropic/models/beta/model_list_params.rb +58 -0
- data/lib/anthropic/models/beta/model_retrieve_params.rb +21 -0
- data/lib/anthropic/models/beta_api_error.rb +25 -0
- data/lib/anthropic/models/beta_authentication_error.rb +25 -0
- data/lib/anthropic/models/beta_billing_error.rb +25 -0
- data/lib/anthropic/models/beta_error.rb +33 -0
- data/lib/anthropic/models/beta_error_response.rb +25 -0
- data/lib/anthropic/models/beta_gateway_timeout_error.rb +25 -0
- data/lib/anthropic/models/beta_invalid_request_error.rb +25 -0
- data/lib/anthropic/models/beta_not_found_error.rb +25 -0
- data/lib/anthropic/models/beta_overloaded_error.rb +25 -0
- data/lib/anthropic/models/beta_permission_error.rb +25 -0
- data/lib/anthropic/models/beta_rate_limit_error.rb +25 -0
- data/lib/anthropic/models/billing_error.rb +25 -0
- data/lib/anthropic/models/cache_control_ephemeral.rb +19 -0
- data/lib/anthropic/models/citation_char_location.rb +59 -0
- data/lib/anthropic/models/citation_char_location_param.rb +59 -0
- data/lib/anthropic/models/citation_content_block_location.rb +59 -0
- data/lib/anthropic/models/citation_content_block_location_param.rb +59 -0
- data/lib/anthropic/models/citation_page_location.rb +59 -0
- data/lib/anthropic/models/citation_page_location_param.rb +59 -0
- data/lib/anthropic/models/citations_config_param.rb +23 -0
- data/lib/anthropic/models/citations_delta.rb +42 -0
- data/lib/anthropic/models/completion.rb +63 -0
- data/lib/anthropic/models/completion_create_params.rb +152 -0
- data/lib/anthropic/models/content_block.rb +23 -0
- data/lib/anthropic/models/content_block_param.rb +29 -0
- data/lib/anthropic/models/content_block_source.rb +41 -0
- data/lib/anthropic/models/content_block_source_content.rb +19 -0
- data/lib/anthropic/models/document_block_param.rb +72 -0
- data/lib/anthropic/models/error_object.rb +33 -0
- data/lib/anthropic/models/error_response.rb +25 -0
- data/lib/anthropic/models/gateway_timeout_error.rb +25 -0
- data/lib/anthropic/models/image_block_param.rb +46 -0
- data/lib/anthropic/models/input_json_delta.rb +25 -0
- data/lib/anthropic/models/invalid_request_error.rb +25 -0
- data/lib/anthropic/models/message.rb +138 -0
- data/lib/anthropic/models/message_count_tokens_params.rb +265 -0
- data/lib/anthropic/models/message_count_tokens_tool.rb +19 -0
- data/lib/anthropic/models/message_create_params.rb +380 -0
- data/lib/anthropic/models/message_delta_usage.rb +20 -0
- data/lib/anthropic/models/message_param.rb +55 -0
- data/lib/anthropic/models/message_tokens_count.rb +22 -0
- data/lib/anthropic/models/messages/batch_cancel_params.rb +21 -0
- data/lib/anthropic/models/messages/batch_create_params.rb +449 -0
- data/lib/anthropic/models/messages/batch_delete_params.rb +21 -0
- data/lib/anthropic/models/messages/batch_list_params.rb +58 -0
- data/lib/anthropic/models/messages/batch_results_params.rb +21 -0
- data/lib/anthropic/models/messages/batch_retrieve_params.rb +21 -0
- data/lib/anthropic/models/messages/deleted_message_batch.rb +32 -0
- data/lib/anthropic/models/messages/message_batch.rb +139 -0
- data/lib/anthropic/models/messages/message_batch_canceled_result.rb +23 -0
- data/lib/anthropic/models/messages/message_batch_errored_result.rb +29 -0
- data/lib/anthropic/models/messages/message_batch_expired_result.rb +23 -0
- data/lib/anthropic/models/messages/message_batch_individual_response.rb +42 -0
- data/lib/anthropic/models/messages/message_batch_request_counts.rb +60 -0
- data/lib/anthropic/models/messages/message_batch_result.rb +32 -0
- data/lib/anthropic/models/messages/message_batch_succeeded_result.rb +29 -0
- data/lib/anthropic/models/metadata.rb +24 -0
- data/lib/anthropic/models/model.rb +93 -0
- data/lib/anthropic/models/model_info.rb +45 -0
- data/lib/anthropic/models/model_list_params.rb +56 -0
- data/lib/anthropic/models/model_retrieve_params.rb +19 -0
- data/lib/anthropic/models/not_found_error.rb +25 -0
- data/lib/anthropic/models/overloaded_error.rb +25 -0
- data/lib/anthropic/models/permission_error.rb +25 -0
- data/lib/anthropic/models/plain_text_source.rb +31 -0
- data/lib/anthropic/models/rate_limit_error.rb +25 -0
- data/lib/anthropic/models/raw_content_block_delta.rb +25 -0
- data/lib/anthropic/models/raw_content_block_delta_event.rb +31 -0
- data/lib/anthropic/models/raw_content_block_start_event.rb +50 -0
- data/lib/anthropic/models/raw_content_block_stop_event.rb +25 -0
- data/lib/anthropic/models/raw_message_delta_event.rb +67 -0
- data/lib/anthropic/models/raw_message_start_event.rb +25 -0
- data/lib/anthropic/models/raw_message_stop_event.rb +19 -0
- data/lib/anthropic/models/raw_message_stream_event.rb +27 -0
- data/lib/anthropic/models/redacted_thinking_block.rb +25 -0
- data/lib/anthropic/models/redacted_thinking_block_param.rb +25 -0
- data/lib/anthropic/models/signature_delta.rb +25 -0
- data/lib/anthropic/models/stop_reason.rb +20 -0
- data/lib/anthropic/models/text_block.rb +38 -0
- data/lib/anthropic/models/text_block_param.rb +39 -0
- data/lib/anthropic/models/text_citation.rb +21 -0
- data/lib/anthropic/models/text_citation_param.rb +21 -0
- data/lib/anthropic/models/text_delta.rb +25 -0
- data/lib/anthropic/models/thinking_block.rb +31 -0
- data/lib/anthropic/models/thinking_block_param.rb +31 -0
- data/lib/anthropic/models/thinking_config_disabled.rb +19 -0
- data/lib/anthropic/models/thinking_config_enabled.rb +34 -0
- data/lib/anthropic/models/thinking_config_param.rb +28 -0
- data/lib/anthropic/models/thinking_delta.rb +25 -0
- data/lib/anthropic/models/tool.rb +80 -0
- data/lib/anthropic/models/tool_bash_20250124.rb +34 -0
- data/lib/anthropic/models/tool_choice.rb +29 -0
- data/lib/anthropic/models/tool_choice_any.rb +35 -0
- data/lib/anthropic/models/tool_choice_auto.rb +35 -0
- data/lib/anthropic/models/tool_choice_none.rb +21 -0
- data/lib/anthropic/models/tool_choice_tool.rb +42 -0
- data/lib/anthropic/models/tool_result_block_param.rb +81 -0
- data/lib/anthropic/models/tool_text_editor_20250124.rb +34 -0
- data/lib/anthropic/models/tool_union.rb +19 -0
- data/lib/anthropic/models/tool_use_block.rb +37 -0
- data/lib/anthropic/models/tool_use_block_param.rb +43 -0
- data/lib/anthropic/models/url_image_source.rb +25 -0
- data/lib/anthropic/models/url_pdf_source.rb +25 -0
- data/lib/anthropic/models/usage.rb +41 -0
- data/lib/anthropic/request_options.rb +75 -0
- data/lib/anthropic/resources/beta/messages/batches.rb +198 -0
- data/lib/anthropic/resources/beta/messages.rb +158 -0
- data/lib/anthropic/resources/beta/models.rb +65 -0
- data/lib/anthropic/resources/beta.rb +22 -0
- data/lib/anthropic/resources/completions.rb +100 -0
- data/lib/anthropic/resources/messages/batches.rb +179 -0
- data/lib/anthropic/resources/messages.rb +145 -0
- data/lib/anthropic/resources/models.rb +63 -0
- data/lib/anthropic/version.rb +5 -0
- data/lib/anthropic/vertex/client.rb +210 -0
- data/lib/anthropic.rb +265 -0
- data/manifest.yaml +15 -0
- data/rbi/lib/anthropic/bedrock/client.rbi +80 -0
- data/rbi/lib/anthropic/client.rbi +70 -0
- data/rbi/lib/anthropic/errors.rbi +143 -0
- data/rbi/lib/anthropic/internal/jsonl_stream.rbi +16 -0
- data/rbi/lib/anthropic/internal/page.rbi +26 -0
- data/rbi/lib/anthropic/internal/stream.rbi +16 -0
- data/rbi/lib/anthropic/internal/transport/base_client.rbi +204 -0
- data/rbi/lib/anthropic/internal/transport/pooled_net_requester.rbi +60 -0
- data/rbi/lib/anthropic/internal/type/array_of.rbi +82 -0
- data/rbi/lib/anthropic/internal/type/base_model.rbi +197 -0
- data/rbi/lib/anthropic/internal/type/base_page.rbi +36 -0
- data/rbi/lib/anthropic/internal/type/base_stream.rbi +51 -0
- data/rbi/lib/anthropic/internal/type/boolean.rbi +49 -0
- data/rbi/lib/anthropic/internal/type/converter.rbi +112 -0
- data/rbi/lib/anthropic/internal/type/enum.rbi +63 -0
- data/rbi/lib/anthropic/internal/type/hash_of.rbi +82 -0
- data/rbi/lib/anthropic/internal/type/io_like.rbi +47 -0
- data/rbi/lib/anthropic/internal/type/request_parameters.rbi +21 -0
- data/rbi/lib/anthropic/internal/type/union.rbi +68 -0
- data/rbi/lib/anthropic/internal/type/unknown.rbi +41 -0
- data/rbi/lib/anthropic/internal/util.rbi +282 -0
- data/rbi/lib/anthropic/internal.rbi +12 -0
- data/rbi/lib/anthropic/models/anthropic_beta.rbi +30 -0
- data/rbi/lib/anthropic/models/api_error_object.rbi +19 -0
- data/rbi/lib/anthropic/models/authentication_error.rbi +19 -0
- data/rbi/lib/anthropic/models/base64_image_source.rbi +46 -0
- data/rbi/lib/anthropic/models/base64_pdf_source.rbi +22 -0
- data/rbi/lib/anthropic/models/beta/beta_base64_image_source.rbi +56 -0
- data/rbi/lib/anthropic/models/beta/beta_base64_pdf_block.rbi +104 -0
- data/rbi/lib/anthropic/models/beta/beta_base64_pdf_source.rbi +26 -0
- data/rbi/lib/anthropic/models/beta/beta_cache_control_ephemeral.rbi +20 -0
- data/rbi/lib/anthropic/models/beta/beta_citation_char_location.rbi +65 -0
- data/rbi/lib/anthropic/models/beta/beta_citation_char_location_param.rbi +65 -0
- data/rbi/lib/anthropic/models/beta/beta_citation_content_block_location.rbi +63 -0
- data/rbi/lib/anthropic/models/beta/beta_citation_content_block_location_param.rbi +63 -0
- data/rbi/lib/anthropic/models/beta/beta_citation_page_location.rbi +65 -0
- data/rbi/lib/anthropic/models/beta/beta_citation_page_location_param.rbi +65 -0
- data/rbi/lib/anthropic/models/beta/beta_citations_config_param.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_citations_delta.rbi +66 -0
- data/rbi/lib/anthropic/models/beta/beta_content_block.rbi +21 -0
- data/rbi/lib/anthropic/models/beta/beta_content_block_param.rbi +21 -0
- data/rbi/lib/anthropic/models/beta/beta_content_block_source.rbi +74 -0
- data/rbi/lib/anthropic/models/beta/beta_content_block_source_content.rbi +19 -0
- data/rbi/lib/anthropic/models/beta/beta_image_block_param.rbi +68 -0
- data/rbi/lib/anthropic/models/beta/beta_input_json_delta.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_message.rbi +180 -0
- data/rbi/lib/anthropic/models/beta/beta_message_delta_usage.rbi +21 -0
- data/rbi/lib/anthropic/models/beta/beta_message_param.rbi +126 -0
- data/rbi/lib/anthropic/models/beta/beta_message_tokens_count.rbi +22 -0
- data/rbi/lib/anthropic/models/beta/beta_metadata.rbi +25 -0
- data/rbi/lib/anthropic/models/beta/beta_model_info.rbi +38 -0
- data/rbi/lib/anthropic/models/beta/beta_plain_text_source.rbi +26 -0
- data/rbi/lib/anthropic/models/beta/beta_raw_content_block_delta.rbi +21 -0
- data/rbi/lib/anthropic/models/beta/beta_raw_content_block_delta_event.rbi +65 -0
- data/rbi/lib/anthropic/models/beta/beta_raw_content_block_start_event.rbi +74 -0
- data/rbi/lib/anthropic/models/beta/beta_raw_content_block_stop_event.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_raw_message_delta_event.rbi +96 -0
- data/rbi/lib/anthropic/models/beta/beta_raw_message_start_event.rbi +29 -0
- data/rbi/lib/anthropic/models/beta/beta_raw_message_stop_event.rbi +20 -0
- data/rbi/lib/anthropic/models/beta/beta_raw_message_stream_event.rbi +21 -0
- data/rbi/lib/anthropic/models/beta/beta_redacted_thinking_block.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_redacted_thinking_block_param.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_signature_delta.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_stop_reason.rbi +24 -0
- data/rbi/lib/anthropic/models/beta/beta_text_block.rbi +76 -0
- data/rbi/lib/anthropic/models/beta/beta_text_block_param.rbi +84 -0
- data/rbi/lib/anthropic/models/beta/beta_text_citation.rbi +21 -0
- data/rbi/lib/anthropic/models/beta/beta_text_citation_param.rbi +21 -0
- data/rbi/lib/anthropic/models/beta/beta_text_delta.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_thinking_block.rbi +26 -0
- data/rbi/lib/anthropic/models/beta/beta_thinking_block_param.rbi +26 -0
- data/rbi/lib/anthropic/models/beta/beta_thinking_config_disabled.rbi +20 -0
- data/rbi/lib/anthropic/models/beta/beta_thinking_config_enabled.rbi +32 -0
- data/rbi/lib/anthropic/models/beta/beta_thinking_config_param.rbi +30 -0
- data/rbi/lib/anthropic/models/beta/beta_thinking_delta.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_tool.rbi +112 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_bash_20241022.rbi +49 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_bash_20250124.rbi +49 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_choice.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_choice_any.rbi +31 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_choice_auto.rbi +31 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_choice_none.rbi +21 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_choice_tool.rbi +37 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_computer_use_20241022.rbi +77 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_computer_use_20250124.rbi +77 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_result_block_param.rbi +129 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_text_editor_20241022.rbi +49 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_text_editor_20250124.rbi +49 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_union.rbi +21 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_use_block.rbi +29 -0
- data/rbi/lib/anthropic/models/beta/beta_tool_use_block_param.rbi +60 -0
- data/rbi/lib/anthropic/models/beta/beta_url_image_source.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_url_pdf_source.rbi +23 -0
- data/rbi/lib/anthropic/models/beta/beta_usage.rbi +52 -0
- data/rbi/lib/anthropic/models/beta/message_count_tokens_params.rbi +409 -0
- data/rbi/lib/anthropic/models/beta/message_create_params.rbi +489 -0
- data/rbi/lib/anthropic/models/beta/messages/batch_cancel_params.rbi +41 -0
- data/rbi/lib/anthropic/models/beta/messages/batch_create_params.rbi +572 -0
- data/rbi/lib/anthropic/models/beta/messages/batch_delete_params.rbi +41 -0
- data/rbi/lib/anthropic/models/beta/messages/batch_list_params.rbi +72 -0
- data/rbi/lib/anthropic/models/beta/messages/batch_results_params.rbi +41 -0
- data/rbi/lib/anthropic/models/beta/messages/batch_retrieve_params.rbi +41 -0
- data/rbi/lib/anthropic/models/beta/messages/beta_deleted_message_batch.rbi +27 -0
- data/rbi/lib/anthropic/models/beta/messages/beta_message_batch.rbi +148 -0
- data/rbi/lib/anthropic/models/beta/messages/beta_message_batch_canceled_result.rbi +20 -0
- data/rbi/lib/anthropic/models/beta/messages/beta_message_batch_errored_result.rbi +29 -0
- data/rbi/lib/anthropic/models/beta/messages/beta_message_batch_expired_result.rbi +20 -0
- data/rbi/lib/anthropic/models/beta/messages/beta_message_batch_individual_response.rbi +68 -0
- data/rbi/lib/anthropic/models/beta/messages/beta_message_batch_request_counts.rbi +63 -0
- data/rbi/lib/anthropic/models/beta/messages/beta_message_batch_result.rbi +26 -0
- data/rbi/lib/anthropic/models/beta/messages/beta_message_batch_succeeded_result.rbi +29 -0
- data/rbi/lib/anthropic/models/beta/model_list_params.rbi +59 -0
- data/rbi/lib/anthropic/models/beta/model_retrieve_params.rbi +21 -0
- data/rbi/lib/anthropic/models/beta_api_error.rbi +19 -0
- data/rbi/lib/anthropic/models/beta_authentication_error.rbi +19 -0
- data/rbi/lib/anthropic/models/beta_billing_error.rbi +19 -0
- data/rbi/lib/anthropic/models/beta_error.rbi +17 -0
- data/rbi/lib/anthropic/models/beta_error_response.rbi +68 -0
- data/rbi/lib/anthropic/models/beta_gateway_timeout_error.rbi +19 -0
- data/rbi/lib/anthropic/models/beta_invalid_request_error.rbi +19 -0
- data/rbi/lib/anthropic/models/beta_not_found_error.rbi +19 -0
- data/rbi/lib/anthropic/models/beta_overloaded_error.rbi +19 -0
- data/rbi/lib/anthropic/models/beta_permission_error.rbi +19 -0
- data/rbi/lib/anthropic/models/beta_rate_limit_error.rbi +19 -0
- data/rbi/lib/anthropic/models/billing_error.rbi +19 -0
- data/rbi/lib/anthropic/models/cache_control_ephemeral.rbi +16 -0
- data/rbi/lib/anthropic/models/citation_char_location.rbi +61 -0
- data/rbi/lib/anthropic/models/citation_char_location_param.rbi +61 -0
- data/rbi/lib/anthropic/models/citation_content_block_location.rbi +59 -0
- data/rbi/lib/anthropic/models/citation_content_block_location_param.rbi +59 -0
- data/rbi/lib/anthropic/models/citation_page_location.rbi +61 -0
- data/rbi/lib/anthropic/models/citation_page_location_param.rbi +61 -0
- data/rbi/lib/anthropic/models/citations_config_param.rbi +19 -0
- data/rbi/lib/anthropic/models/citations_delta.rbi +62 -0
- data/rbi/lib/anthropic/models/completion.rbi +65 -0
- data/rbi/lib/anthropic/models/completion_create_params.rbi +142 -0
- data/rbi/lib/anthropic/models/content_block.rbi +17 -0
- data/rbi/lib/anthropic/models/content_block_param.rbi +17 -0
- data/rbi/lib/anthropic/models/content_block_source.rbi +56 -0
- data/rbi/lib/anthropic/models/content_block_source_content.rbi +12 -0
- data/rbi/lib/anthropic/models/document_block_param.rbi +97 -0
- data/rbi/lib/anthropic/models/error_object.rbi +17 -0
- data/rbi/lib/anthropic/models/error_response.rbi +68 -0
- data/rbi/lib/anthropic/models/gateway_timeout_error.rbi +19 -0
- data/rbi/lib/anthropic/models/image_block_param.rbi +57 -0
- data/rbi/lib/anthropic/models/input_json_delta.rbi +19 -0
- data/rbi/lib/anthropic/models/invalid_request_error.rbi +19 -0
- data/rbi/lib/anthropic/models/message.rbi +176 -0
- data/rbi/lib/anthropic/models/message_count_tokens_params.rbi +363 -0
- data/rbi/lib/anthropic/models/message_count_tokens_tool.rbi +17 -0
- data/rbi/lib/anthropic/models/message_create_params.rbi +453 -0
- data/rbi/lib/anthropic/models/message_delta_usage.rbi +17 -0
- data/rbi/lib/anthropic/models/message_param.rbi +121 -0
- data/rbi/lib/anthropic/models/message_tokens_count.rbi +18 -0
- data/rbi/lib/anthropic/models/messages/batch_cancel_params.rbi +21 -0
- data/rbi/lib/anthropic/models/messages/batch_create_params.rbi +535 -0
- data/rbi/lib/anthropic/models/messages/batch_delete_params.rbi +21 -0
- data/rbi/lib/anthropic/models/messages/batch_list_params.rbi +59 -0
- data/rbi/lib/anthropic/models/messages/batch_results_params.rbi +21 -0
- data/rbi/lib/anthropic/models/messages/batch_retrieve_params.rbi +21 -0
- data/rbi/lib/anthropic/models/messages/deleted_message_batch.rbi +25 -0
- data/rbi/lib/anthropic/models/messages/message_batch.rbi +143 -0
- data/rbi/lib/anthropic/models/messages/message_batch_canceled_result.rbi +20 -0
- data/rbi/lib/anthropic/models/messages/message_batch_errored_result.rbi +29 -0
- data/rbi/lib/anthropic/models/messages/message_batch_expired_result.rbi +20 -0
- data/rbi/lib/anthropic/models/messages/message_batch_individual_response.rbi +68 -0
- data/rbi/lib/anthropic/models/messages/message_batch_request_counts.rbi +63 -0
- data/rbi/lib/anthropic/models/messages/message_batch_result.rbi +26 -0
- data/rbi/lib/anthropic/models/messages/message_batch_succeeded_result.rbi +29 -0
- data/rbi/lib/anthropic/models/metadata.rbi +21 -0
- data/rbi/lib/anthropic/models/model.rbi +54 -0
- data/rbi/lib/anthropic/models/model_info.rbi +34 -0
- data/rbi/lib/anthropic/models/model_list_params.rbi +57 -0
- data/rbi/lib/anthropic/models/model_retrieve_params.rbi +19 -0
- data/rbi/lib/anthropic/models/not_found_error.rbi +19 -0
- data/rbi/lib/anthropic/models/overloaded_error.rbi +19 -0
- data/rbi/lib/anthropic/models/permission_error.rbi +19 -0
- data/rbi/lib/anthropic/models/plain_text_source.rbi +22 -0
- data/rbi/lib/anthropic/models/rate_limit_error.rbi +19 -0
- data/rbi/lib/anthropic/models/raw_content_block_delta.rbi +17 -0
- data/rbi/lib/anthropic/models/raw_content_block_delta_event.rbi +61 -0
- data/rbi/lib/anthropic/models/raw_content_block_start_event.rbi +70 -0
- data/rbi/lib/anthropic/models/raw_content_block_stop_event.rbi +19 -0
- data/rbi/lib/anthropic/models/raw_message_delta_event.rbi +81 -0
- data/rbi/lib/anthropic/models/raw_message_start_event.rbi +25 -0
- data/rbi/lib/anthropic/models/raw_message_stop_event.rbi +16 -0
- data/rbi/lib/anthropic/models/raw_message_stream_event.rbi +17 -0
- data/rbi/lib/anthropic/models/redacted_thinking_block.rbi +19 -0
- data/rbi/lib/anthropic/models/redacted_thinking_block_param.rbi +19 -0
- data/rbi/lib/anthropic/models/signature_delta.rbi +19 -0
- data/rbi/lib/anthropic/models/stop_reason.rbi +20 -0
- data/rbi/lib/anthropic/models/text_block.rbi +72 -0
- data/rbi/lib/anthropic/models/text_block_param.rbi +80 -0
- data/rbi/lib/anthropic/models/text_citation.rbi +17 -0
- data/rbi/lib/anthropic/models/text_citation_param.rbi +17 -0
- data/rbi/lib/anthropic/models/text_delta.rbi +19 -0
- data/rbi/lib/anthropic/models/thinking_block.rbi +22 -0
- data/rbi/lib/anthropic/models/thinking_block_param.rbi +22 -0
- data/rbi/lib/anthropic/models/thinking_config_disabled.rbi +16 -0
- data/rbi/lib/anthropic/models/thinking_config_enabled.rbi +28 -0
- data/rbi/lib/anthropic/models/thinking_config_param.rbi +21 -0
- data/rbi/lib/anthropic/models/thinking_delta.rbi +19 -0
- data/rbi/lib/anthropic/models/tool.rbi +88 -0
- data/rbi/lib/anthropic/models/tool_bash_20250124.rbi +43 -0
- data/rbi/lib/anthropic/models/tool_choice.rbi +19 -0
- data/rbi/lib/anthropic/models/tool_choice_any.rbi +27 -0
- data/rbi/lib/anthropic/models/tool_choice_auto.rbi +27 -0
- data/rbi/lib/anthropic/models/tool_choice_none.rbi +17 -0
- data/rbi/lib/anthropic/models/tool_choice_tool.rbi +33 -0
- data/rbi/lib/anthropic/models/tool_result_block_param.rbi +102 -0
- data/rbi/lib/anthropic/models/tool_text_editor_20250124.rbi +43 -0
- data/rbi/lib/anthropic/models/tool_union.rbi +17 -0
- data/rbi/lib/anthropic/models/tool_use_block.rbi +25 -0
- data/rbi/lib/anthropic/models/tool_use_block_param.rbi +56 -0
- data/rbi/lib/anthropic/models/url_image_source.rbi +19 -0
- data/rbi/lib/anthropic/models/url_pdf_source.rbi +19 -0
- data/rbi/lib/anthropic/models/usage.rbi +47 -0
- data/rbi/lib/anthropic/request_options.rbi +46 -0
- data/rbi/lib/anthropic/resources/beta/messages/batches.rbi +164 -0
- data/rbi/lib/anthropic/resources/beta/messages.rbi +823 -0
- data/rbi/lib/anthropic/resources/beta/models.rbi +55 -0
- data/rbi/lib/anthropic/resources/beta.rbi +17 -0
- data/rbi/lib/anthropic/resources/completions.rbi +190 -0
- data/rbi/lib/anthropic/resources/messages/batches.rbi +142 -0
- data/rbi/lib/anthropic/resources/messages.rbi +800 -0
- data/rbi/lib/anthropic/resources/models.rbi +53 -0
- data/rbi/lib/anthropic/version.rbi +5 -0
- data/rbi/lib/anthropic/vertex/client.rbi +56 -0
- data/sig/anthropic/bedrock/client.rbs +41 -0
- data/sig/anthropic/client.rbs +39 -0
- data/sig/anthropic/errors.rbs +101 -0
- data/sig/anthropic/internal/jsonl_stream.rbs +9 -0
- data/sig/anthropic/internal/page.rbs +17 -0
- data/sig/anthropic/internal/stream.rbs +9 -0
- data/sig/anthropic/internal/transport/base_client.rbs +110 -0
- data/sig/anthropic/internal/transport/pooled_net_requester.rbs +41 -0
- data/sig/anthropic/internal/type/array_of.rbs +41 -0
- data/sig/anthropic/internal/type/base_model.rbs +82 -0
- data/sig/anthropic/internal/type/base_page.rbs +24 -0
- data/sig/anthropic/internal/type/base_stream.rbs +31 -0
- data/sig/anthropic/internal/type/boolean.rbs +23 -0
- data/sig/anthropic/internal/type/converter.rbs +50 -0
- data/sig/anthropic/internal/type/enum.rbs +27 -0
- data/sig/anthropic/internal/type/hash_of.rbs +41 -0
- data/sig/anthropic/internal/type/io_like.rbs +23 -0
- data/sig/anthropic/internal/type/request_parameters.rbs +15 -0
- data/sig/anthropic/internal/type/union.rbs +45 -0
- data/sig/anthropic/internal/type/unknown.rbs +23 -0
- data/sig/anthropic/internal/util.rbs +154 -0
- data/sig/anthropic/internal.rbs +5 -0
- data/sig/anthropic/models/anthropic_beta.rbs +36 -0
- data/sig/anthropic/models/api_error_object.rbs +15 -0
- data/sig/anthropic/models/authentication_error.rbs +15 -0
- data/sig/anthropic/models/base64_image_source.rbs +40 -0
- data/sig/anthropic/models/base64_pdf_source.rbs +22 -0
- data/sig/anthropic/models/beta/beta_base64_image_source.rbs +44 -0
- data/sig/anthropic/models/beta/beta_base64_pdf_block.rbs +58 -0
- data/sig/anthropic/models/beta/beta_base64_pdf_source.rbs +26 -0
- data/sig/anthropic/models/beta/beta_cache_control_ephemeral.rbs +17 -0
- data/sig/anthropic/models/beta/beta_citation_char_location.rbs +42 -0
- data/sig/anthropic/models/beta/beta_citation_char_location_param.rbs +42 -0
- data/sig/anthropic/models/beta/beta_citation_content_block_location.rbs +42 -0
- data/sig/anthropic/models/beta/beta_citation_content_block_location_param.rbs +42 -0
- data/sig/anthropic/models/beta/beta_citation_page_location.rbs +42 -0
- data/sig/anthropic/models/beta/beta_citation_page_location_param.rbs +42 -0
- data/sig/anthropic/models/beta/beta_citations_config_param.rbs +19 -0
- data/sig/anthropic/models/beta/beta_citations_delta.rbs +37 -0
- data/sig/anthropic/models/beta/beta_content_block.rbs +19 -0
- data/sig/anthropic/models/beta/beta_content_block_param.rbs +22 -0
- data/sig/anthropic/models/beta/beta_content_block_source.rbs +41 -0
- data/sig/anthropic/models/beta/beta_content_block_source_content.rbs +17 -0
- data/sig/anthropic/models/beta/beta_image_block_param.rbs +40 -0
- data/sig/anthropic/models/beta/beta_input_json_delta.rbs +20 -0
- data/sig/anthropic/models/beta/beta_message.rbs +50 -0
- data/sig/anthropic/models/beta/beta_message_delta_usage.rbs +17 -0
- data/sig/anthropic/models/beta/beta_message_param.rbs +51 -0
- data/sig/anthropic/models/beta/beta_message_tokens_count.rbs +17 -0
- data/sig/anthropic/models/beta/beta_metadata.rbs +17 -0
- data/sig/anthropic/models/beta/beta_model_info.rbs +29 -0
- data/sig/anthropic/models/beta/beta_plain_text_source.rbs +26 -0
- data/sig/anthropic/models/beta/beta_raw_content_block_delta.rbs +20 -0
- data/sig/anthropic/models/beta/beta_raw_content_block_delta_event.rbs +30 -0
- data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +42 -0
- data/sig/anthropic/models/beta/beta_raw_content_block_stop_event.rbs +20 -0
- data/sig/anthropic/models/beta/beta_raw_message_delta_event.rbs +49 -0
- data/sig/anthropic/models/beta/beta_raw_message_start_event.rbs +23 -0
- data/sig/anthropic/models/beta/beta_raw_message_stop_event.rbs +17 -0
- data/sig/anthropic/models/beta/beta_raw_message_stream_event.rbs +21 -0
- data/sig/anthropic/models/beta/beta_redacted_thinking_block.rbs +20 -0
- data/sig/anthropic/models/beta/beta_redacted_thinking_block_param.rbs +20 -0
- data/sig/anthropic/models/beta/beta_signature_delta.rbs +19 -0
- data/sig/anthropic/models/beta/beta_stop_reason.rbs +21 -0
- data/sig/anthropic/models/beta/beta_text_block.rbs +30 -0
- data/sig/anthropic/models/beta/beta_text_block_param.rbs +34 -0
- data/sig/anthropic/models/beta/beta_text_citation.rbs +18 -0
- data/sig/anthropic/models/beta/beta_text_citation_param.rbs +18 -0
- data/sig/anthropic/models/beta/beta_text_delta.rbs +19 -0
- data/sig/anthropic/models/beta/beta_thinking_block.rbs +26 -0
- data/sig/anthropic/models/beta/beta_thinking_block_param.rbs +26 -0
- data/sig/anthropic/models/beta/beta_thinking_config_disabled.rbs +17 -0
- data/sig/anthropic/models/beta/beta_thinking_config_enabled.rbs +20 -0
- data/sig/anthropic/models/beta/beta_thinking_config_param.rbs +17 -0
- data/sig/anthropic/models/beta/beta_thinking_delta.rbs +19 -0
- data/sig/anthropic/models/beta/beta_tool.rbs +62 -0
- data/sig/anthropic/models/beta/beta_tool_bash_20241022.rbs +30 -0
- data/sig/anthropic/models/beta/beta_tool_bash_20250124.rbs +30 -0
- data/sig/anthropic/models/beta/beta_tool_choice.rbs +19 -0
- data/sig/anthropic/models/beta/beta_tool_choice_any.rbs +22 -0
- data/sig/anthropic/models/beta/beta_tool_choice_auto.rbs +22 -0
- data/sig/anthropic/models/beta/beta_tool_choice_none.rbs +17 -0
- data/sig/anthropic/models/beta/beta_tool_choice_tool.rbs +28 -0
- data/sig/anthropic/models/beta/beta_tool_computer_use_20241022.rbs +42 -0
- data/sig/anthropic/models/beta/beta_tool_computer_use_20250124.rbs +42 -0
- data/sig/anthropic/models/beta/beta_tool_result_block_param.rbs +69 -0
- data/sig/anthropic/models/beta/beta_tool_text_editor_20241022.rbs +30 -0
- data/sig/anthropic/models/beta/beta_tool_text_editor_20250124.rbs +30 -0
- data/sig/anthropic/models/beta/beta_tool_union.rbs +22 -0
- data/sig/anthropic/models/beta/beta_tool_use_block.rbs +29 -0
- data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +38 -0
- data/sig/anthropic/models/beta/beta_url_image_source.rbs +19 -0
- data/sig/anthropic/models/beta/beta_url_pdf_source.rbs +19 -0
- data/sig/anthropic/models/beta/beta_usage.rbs +34 -0
- data/sig/anthropic/models/beta/message_count_tokens_params.rbs +98 -0
- data/sig/anthropic/models/beta/message_create_params.rbs +119 -0
- data/sig/anthropic/models/beta/messages/batch_cancel_params.rbs +29 -0
- data/sig/anthropic/models/beta/messages/batch_create_params.rbs +161 -0
- data/sig/anthropic/models/beta/messages/batch_delete_params.rbs +29 -0
- data/sig/anthropic/models/beta/messages/batch_list_params.rbs +49 -0
- data/sig/anthropic/models/beta/messages/batch_results_params.rbs +29 -0
- data/sig/anthropic/models/beta/messages/batch_retrieve_params.rbs +29 -0
- data/sig/anthropic/models/beta/messages/beta_deleted_message_batch.rbs +20 -0
- data/sig/anthropic/models/beta/messages/beta_message_batch.rbs +70 -0
- data/sig/anthropic/models/beta/messages/beta_message_batch_canceled_result.rbs +17 -0
- data/sig/anthropic/models/beta/messages/beta_message_batch_errored_result.rbs +23 -0
- data/sig/anthropic/models/beta/messages/beta_message_batch_expired_result.rbs +17 -0
- data/sig/anthropic/models/beta/messages/beta_message_batch_individual_response.rbs +26 -0
- data/sig/anthropic/models/beta/messages/beta_message_batch_request_counts.rbs +38 -0
- data/sig/anthropic/models/beta/messages/beta_message_batch_result.rbs +19 -0
- data/sig/anthropic/models/beta/messages/beta_message_batch_succeeded_result.rbs +23 -0
- data/sig/anthropic/models/beta/model_list_params.rbs +35 -0
- data/sig/anthropic/models/beta/model_retrieve_params.rbs +17 -0
- data/sig/anthropic/models/beta_api_error.rbs +15 -0
- data/sig/anthropic/models/beta_authentication_error.rbs +16 -0
- data/sig/anthropic/models/beta_billing_error.rbs +15 -0
- data/sig/anthropic/models/beta_error.rbs +20 -0
- data/sig/anthropic/models/beta_error_response.rbs +19 -0
- data/sig/anthropic/models/beta_gateway_timeout_error.rbs +15 -0
- data/sig/anthropic/models/beta_invalid_request_error.rbs +16 -0
- data/sig/anthropic/models/beta_not_found_error.rbs +15 -0
- data/sig/anthropic/models/beta_overloaded_error.rbs +15 -0
- data/sig/anthropic/models/beta_permission_error.rbs +15 -0
- data/sig/anthropic/models/beta_rate_limit_error.rbs +15 -0
- data/sig/anthropic/models/billing_error.rbs +15 -0
- data/sig/anthropic/models/cache_control_ephemeral.rbs +13 -0
- data/sig/anthropic/models/citation_char_location.rbs +38 -0
- data/sig/anthropic/models/citation_char_location_param.rbs +38 -0
- data/sig/anthropic/models/citation_content_block_location.rbs +38 -0
- data/sig/anthropic/models/citation_content_block_location_param.rbs +38 -0
- data/sig/anthropic/models/citation_page_location.rbs +38 -0
- data/sig/anthropic/models/citation_page_location_param.rbs +38 -0
- data/sig/anthropic/models/citations_config_param.rbs +15 -0
- data/sig/anthropic/models/citations_delta.rbs +33 -0
- data/sig/anthropic/models/completion.rbs +34 -0
- data/sig/anthropic/models/completion_create_params.rbs +63 -0
- data/sig/anthropic/models/content_block.rbs +15 -0
- data/sig/anthropic/models/content_block_param.rbs +18 -0
- data/sig/anthropic/models/content_block_source.rbs +36 -0
- data/sig/anthropic/models/content_block_source_content.rbs +12 -0
- data/sig/anthropic/models/document_block_param.rbs +54 -0
- data/sig/anthropic/models/error_object.rbs +20 -0
- data/sig/anthropic/models/error_response.rbs +19 -0
- data/sig/anthropic/models/gateway_timeout_error.rbs +15 -0
- data/sig/anthropic/models/image_block_param.rbs +35 -0
- data/sig/anthropic/models/input_json_delta.rbs +15 -0
- data/sig/anthropic/models/invalid_request_error.rbs +16 -0
- data/sig/anthropic/models/message.rbs +46 -0
- data/sig/anthropic/models/message_count_tokens_params.rbs +71 -0
- data/sig/anthropic/models/message_count_tokens_tool.rbs +14 -0
- data/sig/anthropic/models/message_create_params.rbs +107 -0
- data/sig/anthropic/models/message_delta_usage.rbs +13 -0
- data/sig/anthropic/models/message_param.rbs +46 -0
- data/sig/anthropic/models/message_tokens_count.rbs +13 -0
- data/sig/anthropic/models/messages/batch_cancel_params.rbs +17 -0
- data/sig/anthropic/models/messages/batch_create_params.rbs +150 -0
- data/sig/anthropic/models/messages/batch_delete_params.rbs +17 -0
- data/sig/anthropic/models/messages/batch_list_params.rbs +35 -0
- data/sig/anthropic/models/messages/batch_results_params.rbs +17 -0
- data/sig/anthropic/models/messages/batch_retrieve_params.rbs +17 -0
- data/sig/anthropic/models/messages/deleted_message_batch.rbs +17 -0
- data/sig/anthropic/models/messages/message_batch.rbs +70 -0
- data/sig/anthropic/models/messages/message_batch_canceled_result.rbs +17 -0
- data/sig/anthropic/models/messages/message_batch_errored_result.rbs +23 -0
- data/sig/anthropic/models/messages/message_batch_expired_result.rbs +17 -0
- data/sig/anthropic/models/messages/message_batch_individual_response.rbs +26 -0
- data/sig/anthropic/models/messages/message_batch_request_counts.rbs +38 -0
- data/sig/anthropic/models/messages/message_batch_result.rbs +19 -0
- data/sig/anthropic/models/messages/message_batch_succeeded_result.rbs +23 -0
- data/sig/anthropic/models/metadata.rbs +13 -0
- data/sig/anthropic/models/model.rbs +73 -0
- data/sig/anthropic/models/model_info.rbs +25 -0
- data/sig/anthropic/models/model_list_params.rbs +33 -0
- data/sig/anthropic/models/model_retrieve_params.rbs +15 -0
- data/sig/anthropic/models/not_found_error.rbs +15 -0
- data/sig/anthropic/models/overloaded_error.rbs +15 -0
- data/sig/anthropic/models/permission_error.rbs +15 -0
- data/sig/anthropic/models/plain_text_source.rbs +22 -0
- data/sig/anthropic/models/rate_limit_error.rbs +15 -0
- data/sig/anthropic/models/raw_content_block_delta.rbs +16 -0
- data/sig/anthropic/models/raw_content_block_delta_event.rbs +26 -0
- data/sig/anthropic/models/raw_content_block_start_event.rbs +38 -0
- data/sig/anthropic/models/raw_content_block_stop_event.rbs +16 -0
- data/sig/anthropic/models/raw_message_delta_event.rbs +42 -0
- data/sig/anthropic/models/raw_message_start_event.rbs +19 -0
- data/sig/anthropic/models/raw_message_stop_event.rbs +13 -0
- data/sig/anthropic/models/raw_message_stream_event.rbs +17 -0
- data/sig/anthropic/models/redacted_thinking_block.rbs +15 -0
- data/sig/anthropic/models/redacted_thinking_block_param.rbs +16 -0
- data/sig/anthropic/models/signature_delta.rbs +15 -0
- data/sig/anthropic/models/stop_reason.rbs +16 -0
- data/sig/anthropic/models/text_block.rbs +26 -0
- data/sig/anthropic/models/text_block_param.rbs +30 -0
- data/sig/anthropic/models/text_citation.rbs +14 -0
- data/sig/anthropic/models/text_citation_param.rbs +14 -0
- data/sig/anthropic/models/text_delta.rbs +15 -0
- data/sig/anthropic/models/thinking_block.rbs +22 -0
- data/sig/anthropic/models/thinking_block_param.rbs +22 -0
- data/sig/anthropic/models/thinking_config_disabled.rbs +13 -0
- data/sig/anthropic/models/thinking_config_enabled.rbs +15 -0
- data/sig/anthropic/models/thinking_config_param.rbs +13 -0
- data/sig/anthropic/models/thinking_delta.rbs +15 -0
- data/sig/anthropic/models/tool.rbs +44 -0
- data/sig/anthropic/models/tool_bash_20250124.rbs +26 -0
- data/sig/anthropic/models/tool_choice.rbs +15 -0
- data/sig/anthropic/models/tool_choice_any.rbs +17 -0
- data/sig/anthropic/models/tool_choice_auto.rbs +17 -0
- data/sig/anthropic/models/tool_choice_none.rbs +13 -0
- data/sig/anthropic/models/tool_choice_tool.rbs +24 -0
- data/sig/anthropic/models/tool_result_block_param.rbs +64 -0
- data/sig/anthropic/models/tool_text_editor_20250124.rbs +26 -0
- data/sig/anthropic/models/tool_union.rbs +14 -0
- data/sig/anthropic/models/tool_use_block.rbs +25 -0
- data/sig/anthropic/models/tool_use_block_param.rbs +34 -0
- data/sig/anthropic/models/url_image_source.rbs +15 -0
- data/sig/anthropic/models/url_pdf_source.rbs +15 -0
- data/sig/anthropic/models/usage.rbs +30 -0
- data/sig/anthropic/request_options.rbs +34 -0
- data/sig/anthropic/resources/beta/messages/batches.rbs +49 -0
- data/sig/anthropic/resources/beta/messages.rbs +56 -0
- data/sig/anthropic/resources/beta/models.rbs +21 -0
- data/sig/anthropic/resources/beta.rbs +11 -0
- data/sig/anthropic/resources/completions.rbs +31 -0
- data/sig/anthropic/resources/messages/batches.rbs +41 -0
- data/sig/anthropic/resources/messages.rbs +51 -0
- data/sig/anthropic/resources/models.rbs +19 -0
- data/sig/anthropic/version.rbs +3 -0
- data/sig/anthropic/vertex/client.rbs +34 -0
- metadata +746 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Internal
|
3
|
+
module Type
|
4
|
+
module Converter
|
5
|
+
type input = Anthropic::Internal::Type::Converter | Class
|
6
|
+
|
7
|
+
type coerce_state =
|
8
|
+
{
|
9
|
+
strictness: bool | :strong,
|
10
|
+
exactness: { yes: Integer, no: Integer, maybe: Integer },
|
11
|
+
branched: Integer
|
12
|
+
}
|
13
|
+
|
14
|
+
type dump_state = { can_retry: bool }
|
15
|
+
|
16
|
+
def coerce: (
|
17
|
+
top value,
|
18
|
+
state: Anthropic::Internal::Type::Converter::coerce_state
|
19
|
+
) -> top
|
20
|
+
|
21
|
+
def dump: (
|
22
|
+
top value,
|
23
|
+
state: Anthropic::Internal::Type::Converter::dump_state
|
24
|
+
) -> top
|
25
|
+
|
26
|
+
def self.type_info: (
|
27
|
+
{
|
28
|
+
const: (nil | bool | Integer | Float | Symbol)?,
|
29
|
+
enum: ^-> Anthropic::Internal::Type::Converter::input?,
|
30
|
+
union: ^-> Anthropic::Internal::Type::Converter::input?
|
31
|
+
}
|
32
|
+
| ^-> Anthropic::Internal::Type::Converter::input
|
33
|
+
| Anthropic::Internal::Type::Converter::input spec
|
34
|
+
) -> (^-> top)
|
35
|
+
|
36
|
+
def self.coerce: (
|
37
|
+
Anthropic::Internal::Type::Converter::input target,
|
38
|
+
top value,
|
39
|
+
?state: Anthropic::Internal::Type::Converter::coerce_state
|
40
|
+
) -> top
|
41
|
+
|
42
|
+
def self.dump: (
|
43
|
+
Anthropic::Internal::Type::Converter::input target,
|
44
|
+
top value,
|
45
|
+
?state: Anthropic::Internal::Type::Converter::dump_state
|
46
|
+
) -> top
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Internal
|
3
|
+
module Type
|
4
|
+
module Enum
|
5
|
+
include Anthropic::Internal::Type::Converter
|
6
|
+
|
7
|
+
def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)]
|
8
|
+
|
9
|
+
private def self.finalize!: -> void
|
10
|
+
|
11
|
+
def ===: (top other) -> bool
|
12
|
+
|
13
|
+
def ==: (top other) -> bool
|
14
|
+
|
15
|
+
def coerce: (
|
16
|
+
String | Symbol | top value,
|
17
|
+
state: Anthropic::Internal::Type::Converter::coerce_state
|
18
|
+
) -> (Symbol | top)
|
19
|
+
|
20
|
+
def dump: (
|
21
|
+
Symbol | top value,
|
22
|
+
state: Anthropic::Internal::Type::Converter::dump_state
|
23
|
+
) -> (Symbol | top)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Internal
|
3
|
+
module Type
|
4
|
+
class HashOf[Elem]
|
5
|
+
include Anthropic::Internal::Type::Converter
|
6
|
+
|
7
|
+
def self.[]: (
|
8
|
+
::Hash[Symbol, top]
|
9
|
+
| ^-> Anthropic::Internal::Type::Converter::input
|
10
|
+
| Anthropic::Internal::Type::Converter::input type_info,
|
11
|
+
?::Hash[Symbol, top] spec
|
12
|
+
) -> instance
|
13
|
+
|
14
|
+
def ===: (top other) -> bool
|
15
|
+
|
16
|
+
def ==: (top other) -> bool
|
17
|
+
|
18
|
+
def coerce: (
|
19
|
+
::Hash[top, top] | top value,
|
20
|
+
state: Anthropic::Internal::Type::Converter::coerce_state
|
21
|
+
) -> (::Hash[Symbol, top] | top)
|
22
|
+
|
23
|
+
def dump: (
|
24
|
+
::Hash[top, top] | top value,
|
25
|
+
state: Anthropic::Internal::Type::Converter::dump_state
|
26
|
+
) -> (::Hash[Symbol, top] | top)
|
27
|
+
|
28
|
+
def item_type: -> Elem
|
29
|
+
|
30
|
+
def nilable?: -> bool
|
31
|
+
|
32
|
+
def initialize: (
|
33
|
+
::Hash[Symbol, top]
|
34
|
+
| ^-> Anthropic::Internal::Type::Converter::input
|
35
|
+
| Anthropic::Internal::Type::Converter::input type_info,
|
36
|
+
?::Hash[Symbol, top] spec
|
37
|
+
) -> void
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Internal
|
3
|
+
module Type
|
4
|
+
class IOLike
|
5
|
+
extend Anthropic::Internal::Type::Converter
|
6
|
+
|
7
|
+
def self.===: (top other) -> bool
|
8
|
+
|
9
|
+
def self.==: (top other) -> bool
|
10
|
+
|
11
|
+
def self.coerce: (
|
12
|
+
StringIO | String | top value,
|
13
|
+
state: Anthropic::Internal::Type::Converter::coerce_state
|
14
|
+
) -> (StringIO | top)
|
15
|
+
|
16
|
+
def self.dump: (
|
17
|
+
Pathname | StringIO | IO | String | top value,
|
18
|
+
state: Anthropic::Internal::Type::Converter::dump_state
|
19
|
+
) -> (Pathname | StringIO | IO | String | top)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Internal
|
3
|
+
module Type
|
4
|
+
type request_parameters = { request_options: Anthropic::request_opts }
|
5
|
+
|
6
|
+
module RequestParameters
|
7
|
+
attr_accessor request_options: Anthropic::request_opts
|
8
|
+
|
9
|
+
module Converter
|
10
|
+
def dump_request: (top params) -> [top, ::Hash[Symbol, top]]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Internal
|
3
|
+
module Type
|
4
|
+
module Union
|
5
|
+
include Anthropic::Internal::Type::Converter
|
6
|
+
|
7
|
+
private def self.known_variants: -> ::Array[[Symbol?, (^-> Anthropic::Internal::Type::Converter::input)]]
|
8
|
+
|
9
|
+
def self.derefed_variants: -> ::Array[[Symbol?, top]]
|
10
|
+
|
11
|
+
def self.variants: -> ::Array[top]
|
12
|
+
|
13
|
+
private def self.discriminator: (Symbol property) -> void
|
14
|
+
|
15
|
+
private def self.variant: (
|
16
|
+
Symbol
|
17
|
+
| ::Hash[Symbol, top]
|
18
|
+
| ^-> Anthropic::Internal::Type::Converter::input
|
19
|
+
| Anthropic::Internal::Type::Converter::input key,
|
20
|
+
?::Hash[Symbol, top]
|
21
|
+
| ^-> Anthropic::Internal::Type::Converter::input
|
22
|
+
| Anthropic::Internal::Type::Converter::input spec
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
private def self.resolve_variant: (
|
26
|
+
top value
|
27
|
+
) -> Anthropic::Internal::Type::Converter::input?
|
28
|
+
|
29
|
+
def ===: (top other) -> bool
|
30
|
+
|
31
|
+
def ==: (top other) -> bool
|
32
|
+
|
33
|
+
def coerce: (
|
34
|
+
top value,
|
35
|
+
state: Anthropic::Internal::Type::Converter::coerce_state
|
36
|
+
) -> top
|
37
|
+
|
38
|
+
def dump: (
|
39
|
+
top value,
|
40
|
+
state: Anthropic::Internal::Type::Converter::dump_state
|
41
|
+
) -> top
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Internal
|
3
|
+
module Type
|
4
|
+
class Unknown
|
5
|
+
extend Anthropic::Internal::Type::Converter
|
6
|
+
|
7
|
+
def self.===: (top other) -> bool
|
8
|
+
|
9
|
+
def self.==: (top other) -> bool
|
10
|
+
|
11
|
+
def self.coerce: (
|
12
|
+
top value,
|
13
|
+
state: Anthropic::Internal::Type::Converter::coerce_state
|
14
|
+
) -> top
|
15
|
+
|
16
|
+
def self.dump: (
|
17
|
+
top value,
|
18
|
+
state: Anthropic::Internal::Type::Converter::dump_state
|
19
|
+
) -> top
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,154 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Internal
|
3
|
+
module Util
|
4
|
+
def self?.monotonic_secs: -> Float
|
5
|
+
|
6
|
+
def self?.arch: -> String
|
7
|
+
|
8
|
+
def self?.os: -> String
|
9
|
+
|
10
|
+
def self?.primitive?: (top input) -> bool
|
11
|
+
|
12
|
+
def self?.coerce_boolean: (String | bool input) -> (bool | top)
|
13
|
+
|
14
|
+
def self?.coerce_boolean!: (String | bool input) -> bool?
|
15
|
+
|
16
|
+
def self?.coerce_integer: (String | Integer input) -> (Integer | top)
|
17
|
+
|
18
|
+
def self?.coerce_float: (String | Integer | Float input) -> (Float | top)
|
19
|
+
|
20
|
+
def self?.coerce_hash: (top input) -> (::Hash[top, top] | top)
|
21
|
+
|
22
|
+
def self?.deep_merge_lr: (top lhs, top rhs, ?concat: bool) -> top
|
23
|
+
|
24
|
+
def self?.deep_merge: (
|
25
|
+
*::Array[top] values,
|
26
|
+
?sentinel: top?,
|
27
|
+
?concat: bool
|
28
|
+
) -> top
|
29
|
+
|
30
|
+
def self?.dig: (
|
31
|
+
::Hash[Symbol, top] | ::Array[top] | top data,
|
32
|
+
(Symbol | Integer | ::Array[(Symbol | Integer)])? pick,
|
33
|
+
?top? sentinel
|
34
|
+
) {
|
35
|
+
-> top?
|
36
|
+
} -> top?
|
37
|
+
|
38
|
+
def self?.uri_origin: (URI::Generic uri) -> String
|
39
|
+
|
40
|
+
def self?.interpolate_path: (String | ::Array[String] path) -> String
|
41
|
+
|
42
|
+
def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]]
|
43
|
+
|
44
|
+
def self?.encode_query: (
|
45
|
+
::Hash[String, (::Array[String] | String)?]? query
|
46
|
+
) -> String?
|
47
|
+
|
48
|
+
type parsed_uri =
|
49
|
+
{
|
50
|
+
scheme: String?,
|
51
|
+
host: String?,
|
52
|
+
port: Integer?,
|
53
|
+
path: String?,
|
54
|
+
query: ::Hash[String, ::Array[String]]
|
55
|
+
}
|
56
|
+
|
57
|
+
def self?.parse_uri: (
|
58
|
+
URI::Generic | String url
|
59
|
+
) -> Anthropic::Internal::Util::parsed_uri
|
60
|
+
|
61
|
+
def self?.unparse_uri: (
|
62
|
+
Anthropic::Internal::Util::parsed_uri parsed
|
63
|
+
) -> URI::Generic
|
64
|
+
|
65
|
+
def self?.join_parsed_uri: (
|
66
|
+
Anthropic::Internal::Util::parsed_uri lhs,
|
67
|
+
Anthropic::Internal::Util::parsed_uri rhs
|
68
|
+
) -> URI::Generic
|
69
|
+
|
70
|
+
def self?.normalized_headers: (
|
71
|
+
*::Hash[String, (String
|
72
|
+
| Integer
|
73
|
+
| ::Array[(String | Integer)?])?] headers
|
74
|
+
) -> ::Hash[String, String]
|
75
|
+
|
76
|
+
class SerializationAdapter
|
77
|
+
attr_reader inner: Pathname | IO
|
78
|
+
|
79
|
+
def to_json: (*top a) -> String
|
80
|
+
|
81
|
+
def to_yaml: (*top a) -> String
|
82
|
+
|
83
|
+
def initialize: (Pathname | IO inner) -> void
|
84
|
+
end
|
85
|
+
|
86
|
+
class ReadIOAdapter
|
87
|
+
def close?: -> bool?
|
88
|
+
|
89
|
+
def close: -> void
|
90
|
+
|
91
|
+
private def read_enum: (Integer? max_len) -> String
|
92
|
+
|
93
|
+
def read: (?Integer? max_len, ?String? out_string) -> String?
|
94
|
+
|
95
|
+
def initialize: (
|
96
|
+
String | Pathname | StringIO | Enumerable[String] src
|
97
|
+
) {
|
98
|
+
(String arg0) -> void
|
99
|
+
} -> void
|
100
|
+
end
|
101
|
+
|
102
|
+
def self?.writable_enum: {
|
103
|
+
(Enumerator::Yielder y) -> void
|
104
|
+
} -> Enumerable[String]
|
105
|
+
|
106
|
+
def self?.write_multipart_chunk: (
|
107
|
+
Enumerator::Yielder y,
|
108
|
+
boundary: String,
|
109
|
+
key: Symbol | String,
|
110
|
+
val: top,
|
111
|
+
closing: ::Array[^-> void]
|
112
|
+
) -> void
|
113
|
+
|
114
|
+
def self?.encode_multipart_streaming: (
|
115
|
+
top body
|
116
|
+
) -> [String, Enumerable[String]]
|
117
|
+
|
118
|
+
def self?.encode_content: (
|
119
|
+
::Hash[String, String] headers,
|
120
|
+
top body
|
121
|
+
) -> top
|
122
|
+
|
123
|
+
def self?.decode_content: (
|
124
|
+
::Hash[String, String] headers,
|
125
|
+
stream: Enumerable[String],
|
126
|
+
?suppress_error: bool
|
127
|
+
) -> top
|
128
|
+
|
129
|
+
def self?.fused_enum: (
|
130
|
+
Enumerable[top] enum,
|
131
|
+
?external: bool
|
132
|
+
) {
|
133
|
+
-> void
|
134
|
+
} -> Enumerable[top]
|
135
|
+
|
136
|
+
def self?.close_fused!: (Enumerable[top]? enum) -> void
|
137
|
+
|
138
|
+
def self?.chain_fused: (
|
139
|
+
Enumerable[top]? enum
|
140
|
+
) {
|
141
|
+
(Enumerator::Yielder arg0) -> void
|
142
|
+
} -> Enumerable[top]
|
143
|
+
|
144
|
+
type server_sent_event =
|
145
|
+
{ event: String?, data: String?, id: String?, retry: Integer? }
|
146
|
+
|
147
|
+
def self?.decode_lines: (Enumerable[String] enum) -> Enumerable[String]
|
148
|
+
|
149
|
+
def self?.decode_sse: (
|
150
|
+
Enumerable[String] lines
|
151
|
+
) -> Enumerable[Anthropic::Internal::Util::server_sent_event]
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
type anthropic_beta =
|
4
|
+
String
|
5
|
+
| :"message-batches-2024-09-24"
|
6
|
+
| :"prompt-caching-2024-07-31"
|
7
|
+
| :"computer-use-2024-10-22"
|
8
|
+
| :"computer-use-2025-01-24"
|
9
|
+
| :"pdfs-2024-09-25"
|
10
|
+
| :"token-counting-2024-11-01"
|
11
|
+
| :"token-efficient-tools-2025-02-19"
|
12
|
+
| :"output-128k-2025-02-19"
|
13
|
+
|
14
|
+
module AnthropicBeta
|
15
|
+
extend Anthropic::Internal::Type::Union
|
16
|
+
|
17
|
+
def self?.variants: -> [String, (:"message-batches-2024-09-24"
|
18
|
+
| :"prompt-caching-2024-07-31"
|
19
|
+
| :"computer-use-2024-10-22"
|
20
|
+
| :"computer-use-2025-01-24"
|
21
|
+
| :"pdfs-2024-09-25"
|
22
|
+
| :"token-counting-2024-11-01"
|
23
|
+
| :"token-efficient-tools-2025-02-19"
|
24
|
+
| :"output-128k-2025-02-19")]
|
25
|
+
|
26
|
+
MESSAGE_BATCHES_2024_09_24: :"message-batches-2024-09-24"
|
27
|
+
PROMPT_CACHING_2024_07_31: :"prompt-caching-2024-07-31"
|
28
|
+
COMPUTER_USE_2024_10_22: :"computer-use-2024-10-22"
|
29
|
+
COMPUTER_USE_2025_01_24: :"computer-use-2025-01-24"
|
30
|
+
PDFS_2024_09_25: :"pdfs-2024-09-25"
|
31
|
+
TOKEN_COUNTING_2024_11_01: :"token-counting-2024-11-01"
|
32
|
+
TOKEN_EFFICIENT_TOOLS_2025_02_19: :"token-efficient-tools-2025-02-19"
|
33
|
+
OUTPUT_128K_2025_02_19: :"output-128k-2025-02-19"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
type api_error_object = { message: String, type: :api_error }
|
4
|
+
|
5
|
+
class APIErrorObject < Anthropic::Internal::Type::BaseModel
|
6
|
+
attr_accessor message: String
|
7
|
+
|
8
|
+
attr_accessor type: :api_error
|
9
|
+
|
10
|
+
def initialize: (message: String, ?type: :api_error) -> void
|
11
|
+
|
12
|
+
def to_hash: -> Anthropic::Models::api_error_object
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
type authentication_error = { message: String, type: :authentication_error }
|
4
|
+
|
5
|
+
class AuthenticationError < Anthropic::Internal::Type::BaseModel
|
6
|
+
attr_accessor message: String
|
7
|
+
|
8
|
+
attr_accessor type: :authentication_error
|
9
|
+
|
10
|
+
def initialize: (message: String, ?type: :authentication_error) -> void
|
11
|
+
|
12
|
+
def to_hash: -> Anthropic::Models::authentication_error
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
type base64_image_source =
|
4
|
+
{
|
5
|
+
data: String,
|
6
|
+
media_type: Anthropic::Models::Base64ImageSource::media_type,
|
7
|
+
type: :base64
|
8
|
+
}
|
9
|
+
|
10
|
+
class Base64ImageSource < Anthropic::Internal::Type::BaseModel
|
11
|
+
attr_accessor data: String
|
12
|
+
|
13
|
+
attr_accessor media_type: Anthropic::Models::Base64ImageSource::media_type
|
14
|
+
|
15
|
+
attr_accessor type: :base64
|
16
|
+
|
17
|
+
def initialize: (
|
18
|
+
data: String,
|
19
|
+
media_type: Anthropic::Models::Base64ImageSource::media_type,
|
20
|
+
?type: :base64
|
21
|
+
) -> void
|
22
|
+
|
23
|
+
def to_hash: -> Anthropic::Models::base64_image_source
|
24
|
+
|
25
|
+
type media_type =
|
26
|
+
:"image/jpeg" | :"image/png" | :"image/gif" | :"image/webp"
|
27
|
+
|
28
|
+
module MediaType
|
29
|
+
extend Anthropic::Internal::Type::Enum
|
30
|
+
|
31
|
+
IMAGE_JPEG: :"image/jpeg"
|
32
|
+
IMAGE_PNG: :"image/png"
|
33
|
+
IMAGE_GIF: :"image/gif"
|
34
|
+
IMAGE_WEBP: :"image/webp"
|
35
|
+
|
36
|
+
def self?.values: -> ::Array[Anthropic::Models::Base64ImageSource::media_type]
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
type base64_pdf_source =
|
4
|
+
{ data: String, media_type: :"application/pdf", type: :base64 }
|
5
|
+
|
6
|
+
class Base64PDFSource < Anthropic::Internal::Type::BaseModel
|
7
|
+
attr_accessor data: String
|
8
|
+
|
9
|
+
attr_accessor media_type: :"application/pdf"
|
10
|
+
|
11
|
+
attr_accessor type: :base64
|
12
|
+
|
13
|
+
def initialize: (
|
14
|
+
data: String,
|
15
|
+
?media_type: :"application/pdf",
|
16
|
+
?type: :base64
|
17
|
+
) -> void
|
18
|
+
|
19
|
+
def to_hash: -> Anthropic::Models::base64_pdf_source
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
class BetaBase64ImageSource = Beta::BetaBase64ImageSource
|
4
|
+
|
5
|
+
module Beta
|
6
|
+
type beta_base64_image_source =
|
7
|
+
{
|
8
|
+
data: String,
|
9
|
+
media_type: Anthropic::Models::Beta::BetaBase64ImageSource::media_type,
|
10
|
+
type: :base64
|
11
|
+
}
|
12
|
+
|
13
|
+
class BetaBase64ImageSource < Anthropic::Internal::Type::BaseModel
|
14
|
+
attr_accessor data: String
|
15
|
+
|
16
|
+
attr_accessor media_type: Anthropic::Models::Beta::BetaBase64ImageSource::media_type
|
17
|
+
|
18
|
+
attr_accessor type: :base64
|
19
|
+
|
20
|
+
def initialize: (
|
21
|
+
data: String,
|
22
|
+
media_type: Anthropic::Models::Beta::BetaBase64ImageSource::media_type,
|
23
|
+
?type: :base64
|
24
|
+
) -> void
|
25
|
+
|
26
|
+
def to_hash: -> Anthropic::Models::Beta::beta_base64_image_source
|
27
|
+
|
28
|
+
type media_type =
|
29
|
+
:"image/jpeg" | :"image/png" | :"image/gif" | :"image/webp"
|
30
|
+
|
31
|
+
module MediaType
|
32
|
+
extend Anthropic::Internal::Type::Enum
|
33
|
+
|
34
|
+
IMAGE_JPEG: :"image/jpeg"
|
35
|
+
IMAGE_PNG: :"image/png"
|
36
|
+
IMAGE_GIF: :"image/gif"
|
37
|
+
IMAGE_WEBP: :"image/webp"
|
38
|
+
|
39
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaBase64ImageSource::media_type]
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
class BetaBase64PDFBlock = Beta::BetaBase64PDFBlock
|
4
|
+
|
5
|
+
module Beta
|
6
|
+
type beta_base64_pdf_block =
|
7
|
+
{
|
8
|
+
source: Anthropic::Models::Beta::BetaBase64PDFBlock::source,
|
9
|
+
type: :document,
|
10
|
+
cache_control: Anthropic::Models::Beta::BetaCacheControlEphemeral?,
|
11
|
+
citations: Anthropic::Models::Beta::BetaCitationsConfigParam,
|
12
|
+
context: String?,
|
13
|
+
title: String?
|
14
|
+
}
|
15
|
+
|
16
|
+
class BetaBase64PDFBlock < Anthropic::Internal::Type::BaseModel
|
17
|
+
attr_accessor source: Anthropic::Models::Beta::BetaBase64PDFBlock::source
|
18
|
+
|
19
|
+
attr_accessor type: :document
|
20
|
+
|
21
|
+
attr_accessor cache_control: Anthropic::Models::Beta::BetaCacheControlEphemeral?
|
22
|
+
|
23
|
+
attr_reader citations: Anthropic::Models::Beta::BetaCitationsConfigParam?
|
24
|
+
|
25
|
+
def citations=: (
|
26
|
+
Anthropic::Models::Beta::BetaCitationsConfigParam
|
27
|
+
) -> Anthropic::Models::Beta::BetaCitationsConfigParam
|
28
|
+
|
29
|
+
attr_accessor context: String?
|
30
|
+
|
31
|
+
attr_accessor title: String?
|
32
|
+
|
33
|
+
def initialize: (
|
34
|
+
source: Anthropic::Models::Beta::BetaBase64PDFBlock::source,
|
35
|
+
?cache_control: Anthropic::Models::Beta::BetaCacheControlEphemeral?,
|
36
|
+
?citations: Anthropic::Models::Beta::BetaCitationsConfigParam,
|
37
|
+
?context: String?,
|
38
|
+
?title: String?,
|
39
|
+
?type: :document
|
40
|
+
) -> void
|
41
|
+
|
42
|
+
def to_hash: -> Anthropic::Models::Beta::beta_base64_pdf_block
|
43
|
+
|
44
|
+
type source =
|
45
|
+
Anthropic::Models::Beta::BetaBase64PDFSource
|
46
|
+
| Anthropic::Models::Beta::BetaPlainTextSource
|
47
|
+
| Anthropic::Models::Beta::BetaContentBlockSource
|
48
|
+
| Anthropic::Models::Beta::BetaURLPDFSource
|
49
|
+
|
50
|
+
module Source
|
51
|
+
extend Anthropic::Internal::Type::Union
|
52
|
+
|
53
|
+
def self?.variants: -> [Anthropic::Models::Beta::BetaBase64PDFSource, Anthropic::Models::Beta::BetaPlainTextSource, Anthropic::Models::Beta::BetaContentBlockSource, Anthropic::Models::Beta::BetaURLPDFSource]
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
class BetaBase64PDFSource = Beta::BetaBase64PDFSource
|
4
|
+
|
5
|
+
module Beta
|
6
|
+
type beta_base64_pdf_source =
|
7
|
+
{ data: String, media_type: :"application/pdf", type: :base64 }
|
8
|
+
|
9
|
+
class BetaBase64PDFSource < Anthropic::Internal::Type::BaseModel
|
10
|
+
attr_accessor data: String
|
11
|
+
|
12
|
+
attr_accessor media_type: :"application/pdf"
|
13
|
+
|
14
|
+
attr_accessor type: :base64
|
15
|
+
|
16
|
+
def initialize: (
|
17
|
+
data: String,
|
18
|
+
?media_type: :"application/pdf",
|
19
|
+
?type: :base64
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
def to_hash: -> Anthropic::Models::Beta::beta_base64_pdf_source
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
class BetaCacheControlEphemeral = Beta::BetaCacheControlEphemeral
|
4
|
+
|
5
|
+
module Beta
|
6
|
+
type beta_cache_control_ephemeral = { type: :ephemeral }
|
7
|
+
|
8
|
+
class BetaCacheControlEphemeral < Anthropic::Internal::Type::BaseModel
|
9
|
+
attr_accessor type: :ephemeral
|
10
|
+
|
11
|
+
def initialize: (?type: :ephemeral) -> void
|
12
|
+
|
13
|
+
def to_hash: -> Anthropic::Models::Beta::beta_cache_control_ephemeral
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|