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,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Messages
|
6
|
+
# @see Anthropic::Resources::Messages::Batches#delete
|
7
|
+
class DeletedMessageBatch < Anthropic::Internal::Type::BaseModel
|
8
|
+
# @!attribute id
|
9
|
+
# ID of the Message Batch.
|
10
|
+
#
|
11
|
+
# @return [String]
|
12
|
+
required :id, String
|
13
|
+
|
14
|
+
# @!attribute type
|
15
|
+
# Deleted object type.
|
16
|
+
#
|
17
|
+
# For Message Batches, this is always `"message_batch_deleted"`.
|
18
|
+
#
|
19
|
+
# @return [Symbol, :message_batch_deleted]
|
20
|
+
required :type, const: :message_batch_deleted
|
21
|
+
|
22
|
+
# @!parse
|
23
|
+
# # @param id [String]
|
24
|
+
# # @param type [Symbol, :message_batch_deleted]
|
25
|
+
# #
|
26
|
+
# def initialize(id:, type: :message_batch_deleted, **) = super
|
27
|
+
|
28
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Messages
|
6
|
+
# @see Anthropic::Resources::Messages::Batches#create
|
7
|
+
class MessageBatch < Anthropic::Internal::Type::BaseModel
|
8
|
+
# @!attribute id
|
9
|
+
# Unique object identifier.
|
10
|
+
#
|
11
|
+
# The format and length of IDs may change over time.
|
12
|
+
#
|
13
|
+
# @return [String]
|
14
|
+
required :id, String
|
15
|
+
|
16
|
+
# @!attribute archived_at
|
17
|
+
# RFC 3339 datetime string representing the time at which the Message Batch was
|
18
|
+
# archived and its results became unavailable.
|
19
|
+
#
|
20
|
+
# @return [Time, nil]
|
21
|
+
required :archived_at, Time, nil?: true
|
22
|
+
|
23
|
+
# @!attribute cancel_initiated_at
|
24
|
+
# RFC 3339 datetime string representing the time at which cancellation was
|
25
|
+
# initiated for the Message Batch. Specified only if cancellation was initiated.
|
26
|
+
#
|
27
|
+
# @return [Time, nil]
|
28
|
+
required :cancel_initiated_at, Time, nil?: true
|
29
|
+
|
30
|
+
# @!attribute created_at
|
31
|
+
# RFC 3339 datetime string representing the time at which the Message Batch was
|
32
|
+
# created.
|
33
|
+
#
|
34
|
+
# @return [Time]
|
35
|
+
required :created_at, Time
|
36
|
+
|
37
|
+
# @!attribute ended_at
|
38
|
+
# RFC 3339 datetime string representing the time at which processing for the
|
39
|
+
# Message Batch ended. Specified only once processing ends.
|
40
|
+
#
|
41
|
+
# Processing ends when every request in a Message Batch has either succeeded,
|
42
|
+
# errored, canceled, or expired.
|
43
|
+
#
|
44
|
+
# @return [Time, nil]
|
45
|
+
required :ended_at, Time, nil?: true
|
46
|
+
|
47
|
+
# @!attribute expires_at
|
48
|
+
# RFC 3339 datetime string representing the time at which the Message Batch will
|
49
|
+
# expire and end processing, which is 24 hours after creation.
|
50
|
+
#
|
51
|
+
# @return [Time]
|
52
|
+
required :expires_at, Time
|
53
|
+
|
54
|
+
# @!attribute processing_status
|
55
|
+
# Processing status of the Message Batch.
|
56
|
+
#
|
57
|
+
# @return [Symbol, Anthropic::Models::Messages::MessageBatch::ProcessingStatus]
|
58
|
+
required :processing_status, enum: -> { Anthropic::Models::Messages::MessageBatch::ProcessingStatus }
|
59
|
+
|
60
|
+
# @!attribute request_counts
|
61
|
+
# Tallies requests within the Message Batch, categorized by their status.
|
62
|
+
#
|
63
|
+
# Requests start as `processing` and move to one of the other statuses only once
|
64
|
+
# processing of the entire batch ends. The sum of all values always matches the
|
65
|
+
# total number of requests in the batch.
|
66
|
+
#
|
67
|
+
# @return [Anthropic::Models::Messages::MessageBatchRequestCounts]
|
68
|
+
required :request_counts, -> { Anthropic::Models::Messages::MessageBatchRequestCounts }
|
69
|
+
|
70
|
+
# @!attribute results_url
|
71
|
+
# URL to a `.jsonl` file containing the results of the Message Batch requests.
|
72
|
+
# Specified only once processing ends.
|
73
|
+
#
|
74
|
+
# Results in the file are not guaranteed to be in the same order as requests. Use
|
75
|
+
# the `custom_id` field to match results to requests.
|
76
|
+
#
|
77
|
+
# @return [String, nil]
|
78
|
+
required :results_url, String, nil?: true
|
79
|
+
|
80
|
+
# @!attribute type
|
81
|
+
# Object type.
|
82
|
+
#
|
83
|
+
# For Message Batches, this is always `"message_batch"`.
|
84
|
+
#
|
85
|
+
# @return [Symbol, :message_batch]
|
86
|
+
required :type, const: :message_batch
|
87
|
+
|
88
|
+
# @!parse
|
89
|
+
# # @param id [String]
|
90
|
+
# # @param archived_at [Time, nil]
|
91
|
+
# # @param cancel_initiated_at [Time, nil]
|
92
|
+
# # @param created_at [Time]
|
93
|
+
# # @param ended_at [Time, nil]
|
94
|
+
# # @param expires_at [Time]
|
95
|
+
# # @param processing_status [Symbol, Anthropic::Models::Messages::MessageBatch::ProcessingStatus]
|
96
|
+
# # @param request_counts [Anthropic::Models::Messages::MessageBatchRequestCounts]
|
97
|
+
# # @param results_url [String, nil]
|
98
|
+
# # @param type [Symbol, :message_batch]
|
99
|
+
# #
|
100
|
+
# def initialize(
|
101
|
+
# id:,
|
102
|
+
# archived_at:,
|
103
|
+
# cancel_initiated_at:,
|
104
|
+
# created_at:,
|
105
|
+
# ended_at:,
|
106
|
+
# expires_at:,
|
107
|
+
# processing_status:,
|
108
|
+
# request_counts:,
|
109
|
+
# results_url:,
|
110
|
+
# type: :message_batch,
|
111
|
+
# **
|
112
|
+
# )
|
113
|
+
# super
|
114
|
+
# end
|
115
|
+
|
116
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
117
|
+
|
118
|
+
# Processing status of the Message Batch.
|
119
|
+
#
|
120
|
+
# @see Anthropic::Models::Messages::MessageBatch#processing_status
|
121
|
+
module ProcessingStatus
|
122
|
+
extend Anthropic::Internal::Type::Enum
|
123
|
+
|
124
|
+
IN_PROGRESS = :in_progress
|
125
|
+
CANCELING = :canceling
|
126
|
+
ENDED = :ended
|
127
|
+
|
128
|
+
finalize!
|
129
|
+
|
130
|
+
# @!parse
|
131
|
+
# # @return [Array<Symbol>]
|
132
|
+
# def self.values; end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
MessageBatch = Messages::MessageBatch
|
138
|
+
end
|
139
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Messages
|
6
|
+
class MessageBatchCanceledResult < Anthropic::Internal::Type::BaseModel
|
7
|
+
# @!attribute type
|
8
|
+
#
|
9
|
+
# @return [Symbol, :canceled]
|
10
|
+
required :type, const: :canceled
|
11
|
+
|
12
|
+
# @!parse
|
13
|
+
# # @param type [Symbol, :canceled]
|
14
|
+
# #
|
15
|
+
# def initialize(type: :canceled, **) = super
|
16
|
+
|
17
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
MessageBatchCanceledResult = Messages::MessageBatchCanceledResult
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Messages
|
6
|
+
class MessageBatchErroredResult < Anthropic::Internal::Type::BaseModel
|
7
|
+
# @!attribute error
|
8
|
+
#
|
9
|
+
# @return [Anthropic::Models::ErrorResponse]
|
10
|
+
required :error, -> { Anthropic::Models::ErrorResponse }
|
11
|
+
|
12
|
+
# @!attribute type
|
13
|
+
#
|
14
|
+
# @return [Symbol, :errored]
|
15
|
+
required :type, const: :errored
|
16
|
+
|
17
|
+
# @!parse
|
18
|
+
# # @param error [Anthropic::Models::ErrorResponse]
|
19
|
+
# # @param type [Symbol, :errored]
|
20
|
+
# #
|
21
|
+
# def initialize(error:, type: :errored, **) = super
|
22
|
+
|
23
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
MessageBatchErroredResult = Messages::MessageBatchErroredResult
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Messages
|
6
|
+
class MessageBatchExpiredResult < Anthropic::Internal::Type::BaseModel
|
7
|
+
# @!attribute type
|
8
|
+
#
|
9
|
+
# @return [Symbol, :expired]
|
10
|
+
required :type, const: :expired
|
11
|
+
|
12
|
+
# @!parse
|
13
|
+
# # @param type [Symbol, :expired]
|
14
|
+
# #
|
15
|
+
# def initialize(type: :expired, **) = super
|
16
|
+
|
17
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
MessageBatchExpiredResult = Messages::MessageBatchExpiredResult
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Messages
|
6
|
+
# @see Anthropic::Resources::Messages::Batches#results_streaming
|
7
|
+
class MessageBatchIndividualResponse < Anthropic::Internal::Type::BaseModel
|
8
|
+
# @!attribute custom_id
|
9
|
+
# Developer-provided ID created for each request in a Message Batch. Useful for
|
10
|
+
# matching results to requests, as results may be given out of request order.
|
11
|
+
#
|
12
|
+
# Must be unique for each request within the Message Batch.
|
13
|
+
#
|
14
|
+
# @return [String]
|
15
|
+
required :custom_id, String
|
16
|
+
|
17
|
+
# @!attribute result
|
18
|
+
# Processing result for this request.
|
19
|
+
#
|
20
|
+
# Contains a Message output if processing was successful, an error response if
|
21
|
+
# processing failed, or the reason why processing was not attempted, such as
|
22
|
+
# cancellation or expiration.
|
23
|
+
#
|
24
|
+
# @return [Anthropic::Models::Messages::MessageBatchSucceededResult, Anthropic::Models::Messages::MessageBatchErroredResult, Anthropic::Models::Messages::MessageBatchCanceledResult, Anthropic::Models::Messages::MessageBatchExpiredResult]
|
25
|
+
required :result, union: -> { Anthropic::Models::Messages::MessageBatchResult }
|
26
|
+
|
27
|
+
# @!parse
|
28
|
+
# # This is a single line in the response `.jsonl` file and does not represent the
|
29
|
+
# # response as a whole.
|
30
|
+
# #
|
31
|
+
# # @param custom_id [String]
|
32
|
+
# # @param result [Anthropic::Models::Messages::MessageBatchSucceededResult, Anthropic::Models::Messages::MessageBatchErroredResult, Anthropic::Models::Messages::MessageBatchCanceledResult, Anthropic::Models::Messages::MessageBatchExpiredResult]
|
33
|
+
# #
|
34
|
+
# def initialize(custom_id:, result:, **) = super
|
35
|
+
|
36
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
MessageBatchIndividualResponse = Messages::MessageBatchIndividualResponse
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Messages
|
6
|
+
class MessageBatchRequestCounts < Anthropic::Internal::Type::BaseModel
|
7
|
+
# @!attribute canceled
|
8
|
+
# Number of requests in the Message Batch that have been canceled.
|
9
|
+
#
|
10
|
+
# This is zero until processing of the entire Message Batch has ended.
|
11
|
+
#
|
12
|
+
# @return [Integer]
|
13
|
+
required :canceled, Integer
|
14
|
+
|
15
|
+
# @!attribute errored
|
16
|
+
# Number of requests in the Message Batch that encountered an error.
|
17
|
+
#
|
18
|
+
# This is zero until processing of the entire Message Batch has ended.
|
19
|
+
#
|
20
|
+
# @return [Integer]
|
21
|
+
required :errored, Integer
|
22
|
+
|
23
|
+
# @!attribute expired
|
24
|
+
# Number of requests in the Message Batch that have expired.
|
25
|
+
#
|
26
|
+
# This is zero until processing of the entire Message Batch has ended.
|
27
|
+
#
|
28
|
+
# @return [Integer]
|
29
|
+
required :expired, Integer
|
30
|
+
|
31
|
+
# @!attribute processing
|
32
|
+
# Number of requests in the Message Batch that are processing.
|
33
|
+
#
|
34
|
+
# @return [Integer]
|
35
|
+
required :processing, Integer
|
36
|
+
|
37
|
+
# @!attribute succeeded
|
38
|
+
# Number of requests in the Message Batch that have completed successfully.
|
39
|
+
#
|
40
|
+
# This is zero until processing of the entire Message Batch has ended.
|
41
|
+
#
|
42
|
+
# @return [Integer]
|
43
|
+
required :succeeded, Integer
|
44
|
+
|
45
|
+
# @!parse
|
46
|
+
# # @param canceled [Integer]
|
47
|
+
# # @param errored [Integer]
|
48
|
+
# # @param expired [Integer]
|
49
|
+
# # @param processing [Integer]
|
50
|
+
# # @param succeeded [Integer]
|
51
|
+
# #
|
52
|
+
# def initialize(canceled:, errored:, expired:, processing:, succeeded:, **) = super
|
53
|
+
|
54
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
MessageBatchRequestCounts = Messages::MessageBatchRequestCounts
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Messages
|
6
|
+
# Processing result for this request.
|
7
|
+
#
|
8
|
+
# Contains a Message output if processing was successful, an error response if
|
9
|
+
# processing failed, or the reason why processing was not attempted, such as
|
10
|
+
# cancellation or expiration.
|
11
|
+
module MessageBatchResult
|
12
|
+
extend Anthropic::Internal::Type::Union
|
13
|
+
|
14
|
+
discriminator :type
|
15
|
+
|
16
|
+
variant :succeeded, -> { Anthropic::Models::Messages::MessageBatchSucceededResult }
|
17
|
+
|
18
|
+
variant :errored, -> { Anthropic::Models::Messages::MessageBatchErroredResult }
|
19
|
+
|
20
|
+
variant :canceled, -> { Anthropic::Models::Messages::MessageBatchCanceledResult }
|
21
|
+
|
22
|
+
variant :expired, -> { Anthropic::Models::Messages::MessageBatchExpiredResult }
|
23
|
+
|
24
|
+
# @!parse
|
25
|
+
# # @return [Array(Anthropic::Models::Messages::MessageBatchSucceededResult, Anthropic::Models::Messages::MessageBatchErroredResult, Anthropic::Models::Messages::MessageBatchCanceledResult, Anthropic::Models::Messages::MessageBatchExpiredResult)]
|
26
|
+
# def self.variants; end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
MessageBatchResult = Messages::MessageBatchResult
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Messages
|
6
|
+
class MessageBatchSucceededResult < Anthropic::Internal::Type::BaseModel
|
7
|
+
# @!attribute message
|
8
|
+
#
|
9
|
+
# @return [Anthropic::Models::Message]
|
10
|
+
required :message, -> { Anthropic::Models::Message }
|
11
|
+
|
12
|
+
# @!attribute type
|
13
|
+
#
|
14
|
+
# @return [Symbol, :succeeded]
|
15
|
+
required :type, const: :succeeded
|
16
|
+
|
17
|
+
# @!parse
|
18
|
+
# # @param message [Anthropic::Models::Message]
|
19
|
+
# # @param type [Symbol, :succeeded]
|
20
|
+
# #
|
21
|
+
# def initialize(message:, type: :succeeded, **) = super
|
22
|
+
|
23
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
MessageBatchSucceededResult = Messages::MessageBatchSucceededResult
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
class Metadata < Anthropic::Internal::Type::BaseModel
|
6
|
+
# @!attribute user_id
|
7
|
+
# An external identifier for the user who is associated with the request.
|
8
|
+
#
|
9
|
+
# This should be a uuid, hash value, or other opaque identifier. Anthropic may use
|
10
|
+
# this id to help detect abuse. Do not include any identifying information such as
|
11
|
+
# name, email address, or phone number.
|
12
|
+
#
|
13
|
+
# @return [String, nil]
|
14
|
+
optional :user_id, String, nil?: true
|
15
|
+
|
16
|
+
# @!parse
|
17
|
+
# # @param user_id [String, nil]
|
18
|
+
# #
|
19
|
+
# def initialize(user_id: nil, **) = super
|
20
|
+
|
21
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
# The model that will complete your prompt.\n\nSee
|
6
|
+
# [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
7
|
+
# details and options.
|
8
|
+
module Model
|
9
|
+
extend Anthropic::Internal::Type::Union
|
10
|
+
|
11
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_7_SONNET_LATEST }
|
12
|
+
|
13
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_7_SONNET_20250219 }
|
14
|
+
|
15
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_5_HAIKU_LATEST }
|
16
|
+
|
17
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_5_HAIKU_20241022 }
|
18
|
+
|
19
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_5_SONNET_LATEST }
|
20
|
+
|
21
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_5_SONNET_20241022 }
|
22
|
+
|
23
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_5_SONNET_20240620 }
|
24
|
+
|
25
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_OPUS_LATEST }
|
26
|
+
|
27
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_OPUS_20240229 }
|
28
|
+
|
29
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_SONNET_20240229 }
|
30
|
+
|
31
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_3_HAIKU_20240307 }
|
32
|
+
|
33
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_2_1 }
|
34
|
+
|
35
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_2_0 }
|
36
|
+
|
37
|
+
variant String
|
38
|
+
|
39
|
+
# @!parse
|
40
|
+
# # @return [Array(Symbol, String)]
|
41
|
+
# def self.variants; end
|
42
|
+
|
43
|
+
# @!group
|
44
|
+
|
45
|
+
# Our most intelligent model
|
46
|
+
CLAUDE_3_7_SONNET_LATEST = :"claude-3-7-sonnet-latest"
|
47
|
+
|
48
|
+
# Our most intelligent model
|
49
|
+
CLAUDE_3_7_SONNET_20250219 = :"claude-3-7-sonnet-20250219"
|
50
|
+
|
51
|
+
# Fastest and most compact model for near-instant responsiveness
|
52
|
+
CLAUDE_3_5_HAIKU_LATEST = :"claude-3-5-haiku-latest"
|
53
|
+
|
54
|
+
# Our fastest model
|
55
|
+
CLAUDE_3_5_HAIKU_20241022 = :"claude-3-5-haiku-20241022"
|
56
|
+
|
57
|
+
# Our previous most intelligent model
|
58
|
+
CLAUDE_3_5_SONNET_LATEST = :"claude-3-5-sonnet-latest"
|
59
|
+
|
60
|
+
# Our previous most intelligent model
|
61
|
+
CLAUDE_3_5_SONNET_20241022 = :"claude-3-5-sonnet-20241022"
|
62
|
+
|
63
|
+
CLAUDE_3_5_SONNET_20240620 = :"claude-3-5-sonnet-20240620"
|
64
|
+
|
65
|
+
# Excels at writing and complex tasks
|
66
|
+
CLAUDE_3_OPUS_LATEST = :"claude-3-opus-latest"
|
67
|
+
|
68
|
+
# Excels at writing and complex tasks
|
69
|
+
CLAUDE_3_OPUS_20240229 = :"claude-3-opus-20240229"
|
70
|
+
|
71
|
+
# Balance of speed and intelligence
|
72
|
+
# @deprecated Will reach end-of-life on July 21st, 2025. Please migrate to a newer model.
|
73
|
+
# Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
|
74
|
+
# information.
|
75
|
+
CLAUDE_3_SONNET_20240229 = :"claude-3-sonnet-20240229"
|
76
|
+
|
77
|
+
# Our previous most fast and cost-effective
|
78
|
+
CLAUDE_3_HAIKU_20240307 = :"claude-3-haiku-20240307"
|
79
|
+
|
80
|
+
# @deprecated Will reach end-of-life on July 21st, 2025. Please migrate to a newer model.
|
81
|
+
# Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
|
82
|
+
# information.
|
83
|
+
CLAUDE_2_1 = :"claude-2.1"
|
84
|
+
|
85
|
+
# @deprecated Will reach end-of-life on July 21st, 2025. Please migrate to a newer model.
|
86
|
+
# Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
|
87
|
+
# information.
|
88
|
+
CLAUDE_2_0 = :"claude-2.0"
|
89
|
+
|
90
|
+
# @!endgroup
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
# @see Anthropic::Resources::Models#retrieve
|
6
|
+
class ModelInfo < Anthropic::Internal::Type::BaseModel
|
7
|
+
# @!attribute id
|
8
|
+
# Unique model identifier.
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
required :id, String
|
12
|
+
|
13
|
+
# @!attribute created_at
|
14
|
+
# RFC 3339 datetime string representing the time at which the model was released.
|
15
|
+
# May be set to an epoch value if the release date is unknown.
|
16
|
+
#
|
17
|
+
# @return [Time]
|
18
|
+
required :created_at, Time
|
19
|
+
|
20
|
+
# @!attribute display_name
|
21
|
+
# A human-readable name for the model.
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
required :display_name, String
|
25
|
+
|
26
|
+
# @!attribute type
|
27
|
+
# Object type.
|
28
|
+
#
|
29
|
+
# For Models, this is always `"model"`.
|
30
|
+
#
|
31
|
+
# @return [Symbol, :model]
|
32
|
+
required :type, const: :model
|
33
|
+
|
34
|
+
# @!parse
|
35
|
+
# # @param id [String]
|
36
|
+
# # @param created_at [Time]
|
37
|
+
# # @param display_name [String]
|
38
|
+
# # @param type [Symbol, :model]
|
39
|
+
# #
|
40
|
+
# def initialize(id:, created_at:, display_name:, type: :model, **) = super
|
41
|
+
|
42
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
# @see Anthropic::Resources::Models#list
|
6
|
+
class ModelListParams < Anthropic::Internal::Type::BaseModel
|
7
|
+
# @!parse
|
8
|
+
# extend Anthropic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
# @!attribute [r] after_id
|
12
|
+
# ID of the object to use as a cursor for pagination. When provided, returns the
|
13
|
+
# page of results immediately after this object.
|
14
|
+
#
|
15
|
+
# @return [String, nil]
|
16
|
+
optional :after_id, String
|
17
|
+
|
18
|
+
# @!parse
|
19
|
+
# # @return [String]
|
20
|
+
# attr_writer :after_id
|
21
|
+
|
22
|
+
# @!attribute [r] before_id
|
23
|
+
# ID of the object to use as a cursor for pagination. When provided, returns the
|
24
|
+
# page of results immediately before this object.
|
25
|
+
#
|
26
|
+
# @return [String, nil]
|
27
|
+
optional :before_id, String
|
28
|
+
|
29
|
+
# @!parse
|
30
|
+
# # @return [String]
|
31
|
+
# attr_writer :before_id
|
32
|
+
|
33
|
+
# @!attribute [r] limit
|
34
|
+
# Number of items to return per page.
|
35
|
+
#
|
36
|
+
# Defaults to `20`. Ranges from `1` to `1000`.
|
37
|
+
#
|
38
|
+
# @return [Integer, nil]
|
39
|
+
optional :limit, Integer
|
40
|
+
|
41
|
+
# @!parse
|
42
|
+
# # @return [Integer]
|
43
|
+
# attr_writer :limit
|
44
|
+
|
45
|
+
# @!parse
|
46
|
+
# # @param after_id [String]
|
47
|
+
# # @param before_id [String]
|
48
|
+
# # @param limit [Integer]
|
49
|
+
# # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
50
|
+
# #
|
51
|
+
# def initialize(after_id: nil, before_id: nil, limit: nil, request_options: {}, **) = super
|
52
|
+
|
53
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
# @see Anthropic::Resources::Models#retrieve
|
6
|
+
class ModelRetrieveParams < Anthropic::Internal::Type::BaseModel
|
7
|
+
# @!parse
|
8
|
+
# extend Anthropic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
# @!parse
|
12
|
+
# # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
13
|
+
# #
|
14
|
+
# def initialize(request_options: {}, **) = super
|
15
|
+
|
16
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
class NotFoundError < Anthropic::Internal::Type::BaseModel
|
6
|
+
# @!attribute message
|
7
|
+
#
|
8
|
+
# @return [String]
|
9
|
+
required :message, String
|
10
|
+
|
11
|
+
# @!attribute type
|
12
|
+
#
|
13
|
+
# @return [Symbol, :not_found_error]
|
14
|
+
required :type, const: :not_found_error
|
15
|
+
|
16
|
+
# @!parse
|
17
|
+
# # @param message [String]
|
18
|
+
# # @param type [Symbol, :not_found_error]
|
19
|
+
# #
|
20
|
+
# def initialize(message:, type: :not_found_error, **) = super
|
21
|
+
|
22
|
+
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|