Module: Anthropic::Models

Defined in:
lib/anthropic/models/tool.rb,
lib/anthropic/models/model.rb,
lib/anthropic/models/usage.rb,
lib/anthropic/models/message.rb,
lib/anthropic/models/metadata.rb,
lib/anthropic/models/beta_error.rb,
lib/anthropic/models/completion.rb,
lib/anthropic/models/model_info.rb,
lib/anthropic/models/text_block.rb,
lib/anthropic/models/text_delta.rb,
lib/anthropic/models/tool_union.rb,
lib/anthropic/models/stop_reason.rb,
lib/anthropic/models/tool_choice.rb,
lib/anthropic/models/error_object.rb,
lib/anthropic/models/billing_error.rb,
lib/anthropic/models/content_block.rb,
lib/anthropic/models/message_param.rb,
lib/anthropic/models/text_citation.rb,
lib/anthropic/models/anthropic_beta.rb,
lib/anthropic/models/beta/beta_tool.rb,
lib/anthropic/models/beta_api_error.rb,
lib/anthropic/models/cache_creation.rb,
lib/anthropic/models/error_response.rb,
lib/anthropic/models/thinking_block.rb,
lib/anthropic/models/thinking_delta.rb,
lib/anthropic/models/tool_use_block.rb,
lib/anthropic/models/url_pdf_source.rb,
lib/anthropic/models/beta/beta_skill.rb,
lib/anthropic/models/beta/beta_usage.rb,
lib/anthropic/models/citations_delta.rb,
lib/anthropic/models/not_found_error.rb,
lib/anthropic/models/tool_choice_any.rb,
lib/anthropic/models/api_error_object.rb,
lib/anthropic/models/input_json_delta.rb,
lib/anthropic/models/overloaded_error.rb,
lib/anthropic/models/permission_error.rb,
lib/anthropic/models/rate_limit_error.rb,
lib/anthropic/models/text_block_param.rb,
lib/anthropic/models/tool_choice_auto.rb,
lib/anthropic/models/tool_choice_none.rb,
lib/anthropic/models/tool_choice_tool.rb,
lib/anthropic/models/url_image_source.rb,
lib/anthropic/models/base64_pdf_source.rb,
lib/anthropic/models/beta/beta_message.rb,
lib/anthropic/models/beta/deleted_file.rb,
lib/anthropic/models/image_block_param.rb,
lib/anthropic/models/model_list_params.rb,
lib/anthropic/models/plain_text_source.rb,
lib/anthropic/models/server_tool_usage.rb,
lib/anthropic/models/beta/beta_metadata.rb,
lib/anthropic/models/beta/file_metadata.rb,
lib/anthropic/models/beta_billing_error.rb,
lib/anthropic/models/tool_bash_20250124.rb,
lib/anthropic/models/base64_image_source.rb,
lib/anthropic/models/beta/beta_container.rb,
lib/anthropic/models/beta_error_response.rb,
lib/anthropic/models/content_block_param.rb,
lib/anthropic/models/message_delta_usage.rb,
lib/anthropic/models/text_citation_param.rb,
lib/anthropic/models/authentication_error.rb,
lib/anthropic/models/beta/beta_model_info.rb,
lib/anthropic/models/beta/beta_text_block.rb,
lib/anthropic/models/beta/beta_text_delta.rb,
lib/anthropic/models/beta/beta_tool_union.rb,
lib/anthropic/models/beta_not_found_error.rb,
lib/anthropic/models/content_block_source.rb,
lib/anthropic/models/document_block_param.rb,
lib/anthropic/models/message_tokens_count.rb,
lib/anthropic/models/thinking_block_param.rb,
lib/anthropic/models/tool_use_block_param.rb,
lib/anthropic/models/beta/beta_stop_reason.rb,
lib/anthropic/models/beta/beta_tool_choice.rb,
lib/anthropic/models/beta/file_list_params.rb,
lib/anthropic/models/beta_overloaded_error.rb,
lib/anthropic/models/beta_permission_error.rb,
lib/anthropic/models/beta_rate_limit_error.rb,
lib/anthropic/models/gateway_timeout_error.rb,
lib/anthropic/models/invalid_request_error.rb,
lib/anthropic/models/message_create_params.rb,
lib/anthropic/models/model_retrieve_params.rb,
lib/anthropic/models/server_tool_use_block.rb,
lib/anthropic/models/thinking_config_param.rb,
lib/anthropic/models/beta/beta_skill_params.rb,
lib/anthropic/models/beta/model_list_params.rb,
lib/anthropic/models/beta/skill_list_params.rb,
lib/anthropic/models/citation_char_location.rb,
lib/anthropic/models/citation_page_location.rb,
lib/anthropic/models/citations_config_param.rb,
lib/anthropic/models/messages/message_batch.rb,
lib/anthropic/models/raw_message_stop_event.rb,
lib/anthropic/models/beta/beta_content_block.rb,
lib/anthropic/models/beta/beta_message_param.rb,
lib/anthropic/models/beta/beta_text_citation.rb,
lib/anthropic/models/beta/file_delete_params.rb,
lib/anthropic/models/beta/file_upload_params.rb,
lib/anthropic/models/cache_control_ephemeral.rb,
lib/anthropic/models/raw_content_block_delta.rb,
lib/anthropic/models/raw_message_delta_event.rb,
lib/anthropic/models/raw_message_start_event.rb,
lib/anthropic/models/redacted_thinking_block.rb,
lib/anthropic/models/thinking_config_enabled.rb,
lib/anthropic/models/tool_result_block_param.rb,
lib/anthropic/models/web_search_result_block.rb,
lib/anthropic/models/beta/beta_cache_creation.rb,
lib/anthropic/models/beta/beta_document_block.rb,
lib/anthropic/models/beta/beta_thinking_block.rb,
lib/anthropic/models/beta/beta_thinking_delta.rb,
lib/anthropic/models/beta/beta_thinking_turns.rb,
lib/anthropic/models/beta/beta_tool_use_block.rb,
lib/anthropic/models/beta/beta_tool_uses_keep.rb,
lib/anthropic/models/beta/beta_url_pdf_source.rb,
lib/anthropic/models/beta/skill_create_params.rb,
lib/anthropic/models/beta/skill_delete_params.rb,
lib/anthropic/models/beta/skill_list_response.rb,
lib/anthropic/models/completion_create_params.rb,
lib/anthropic/models/raw_message_stream_event.rb,
lib/anthropic/models/thinking_config_disabled.rb,
lib/anthropic/models/web_search_tool_20250305.rb,
lib/anthropic/models/beta/beta_citation_config.rb,
lib/anthropic/models/beta/beta_citations_delta.rb,
lib/anthropic/models/beta/beta_signature_delta.rb,
lib/anthropic/models/beta/beta_tool_choice_any.rb,
lib/anthropic/models/beta/beta_web_fetch_block.rb,
lib/anthropic/models/beta/file_download_params.rb,
lib/anthropic/models/beta_authentication_error.rb,
lib/anthropic/models/message_count_tokens_tool.rb,
lib/anthropic/models/search_result_block_param.rb,
lib/anthropic/models/tool_text_editor_20250124.rb,
lib/anthropic/models/tool_text_editor_20250429.rb,
lib/anthropic/models/tool_text_editor_20250728.rb,
lib/anthropic/models/beta/beta_base64_pdf_block.rb,
lib/anthropic/models/beta/beta_container_params.rb,
lib/anthropic/models/beta/beta_input_json_delta.rb,
lib/anthropic/models/beta/beta_text_block_param.rb,
lib/anthropic/models/beta/beta_tool_choice_auto.rb,
lib/anthropic/models/beta/beta_tool_choice_none.rb,
lib/anthropic/models/beta/beta_tool_choice_tool.rb,
lib/anthropic/models/beta/beta_url_image_source.rb,
lib/anthropic/models/beta/message_create_params.rb,
lib/anthropic/models/beta/model_retrieve_params.rb,
lib/anthropic/models/beta/skill_create_response.rb,
lib/anthropic/models/beta/skill_delete_response.rb,
lib/anthropic/models/beta/skill_retrieve_params.rb,
lib/anthropic/models/beta_gateway_timeout_error.rb,
lib/anthropic/models/beta_invalid_request_error.rb,
lib/anthropic/models/messages/batch_list_params.rb,
lib/anthropic/models/beta/beta_base64_pdf_source.rb,
lib/anthropic/models/beta/beta_file_image_source.rb,
lib/anthropic/models/beta/beta_image_block_param.rb,
lib/anthropic/models/beta/beta_plain_text_source.rb,
lib/anthropic/models/beta/beta_server_tool_usage.rb,
lib/anthropic/models/beta/beta_tool_uses_trigger.rb,
lib/anthropic/models/message_count_tokens_params.rb,
lib/anthropic/models/server_tool_use_block_param.rb,
lib/anthropic/models/beta/beta_all_thinking_turns.rb,
lib/anthropic/models/beta/beta_json_output_format.rb,
lib/anthropic/models/beta/beta_mcp_tool_use_block.rb,
lib/anthropic/models/beta/beta_tool_bash_20241022.rb,
lib/anthropic/models/beta/beta_tool_bash_20250124.rb,
lib/anthropic/models/beta/skill_retrieve_response.rb,
lib/anthropic/models/citation_char_location_param.rb,
lib/anthropic/models/citation_page_location_param.rb,
lib/anthropic/models/content_block_source_content.rb,
lib/anthropic/models/messages/batch_cancel_params.rb,
lib/anthropic/models/messages/batch_create_params.rb,
lib/anthropic/models/messages/batch_delete_params.rb,
lib/anthropic/models/raw_content_block_stop_event.rb,
lib/anthropic/models/web_search_tool_result_block.rb,
lib/anthropic/models/web_search_tool_result_error.rb,
lib/anthropic/models/beta/beta_base64_image_source.rb,
lib/anthropic/models/beta/beta_content_block_param.rb,
lib/anthropic/models/beta/beta_message_delta_usage.rb,
lib/anthropic/models/beta/beta_text_citation_param.rb,
lib/anthropic/models/messages/batch_results_params.rb,
lib/anthropic/models/messages/message_batch_result.rb,
lib/anthropic/models/raw_content_block_delta_event.rb,
lib/anthropic/models/raw_content_block_start_event.rb,
lib/anthropic/models/redacted_thinking_block_param.rb,
lib/anthropic/models/web_search_result_block_param.rb,
lib/anthropic/models/web_search_tool_request_error.rb,
lib/anthropic/models/beta/beta_content_block_source.rb,
lib/anthropic/models/beta/beta_file_document_source.rb,
lib/anthropic/models/beta/beta_input_tokens_trigger.rb,
lib/anthropic/models/beta/beta_memory_tool_20250818.rb,
lib/anthropic/models/beta/beta_message_tokens_count.rb,
lib/anthropic/models/beta/beta_thinking_block_param.rb,
lib/anthropic/models/beta/beta_tool_use_block_param.rb,
lib/anthropic/models/messages/batch_retrieve_params.rb,
lib/anthropic/models/messages/deleted_message_batch.rb,
lib/anthropic/models/beta/beta_mcp_tool_result_block.rb,
lib/anthropic/models/beta/beta_server_tool_use_block.rb,
lib/anthropic/models/beta/beta_thinking_config_param.rb,
lib/anthropic/models/beta/beta_web_fetch_block_param.rb,
lib/anthropic/models/beta/messages/batch_list_params.rb,
lib/anthropic/models/beta/skills/version_list_params.rb,
lib/anthropic/models/citation_content_block_location.rb,
lib/anthropic/models/beta/beta_citation_char_location.rb,
lib/anthropic/models/beta/beta_citation_page_location.rb,
lib/anthropic/models/beta/beta_citations_config_param.rb,
lib/anthropic/models/beta/beta_container_upload_block.rb,
lib/anthropic/models/beta/beta_raw_message_stop_event.rb,
lib/anthropic/models/beta/beta_request_document_block.rb,
lib/anthropic/models/beta/message_count_tokens_params.rb,
lib/anthropic/models/beta/messages/beta_message_batch.rb,
lib/anthropic/models/citations_search_result_location.rb,
lib/anthropic/models/beta/beta_cache_control_ephemeral.rb,
lib/anthropic/models/beta/beta_raw_content_block_delta.rb,
lib/anthropic/models/beta/beta_raw_message_delta_event.rb,
lib/anthropic/models/beta/beta_raw_message_start_event.rb,
lib/anthropic/models/beta/beta_redacted_thinking_block.rb,
lib/anthropic/models/beta/beta_thinking_config_enabled.rb,
lib/anthropic/models/beta/beta_tool_result_block_param.rb,
lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb,
lib/anthropic/models/beta/beta_web_search_result_block.rb,
lib/anthropic/models/beta/messages/batch_cancel_params.rb,
lib/anthropic/models/beta/messages/batch_create_params.rb,
lib/anthropic/models/beta/messages/batch_delete_params.rb,
lib/anthropic/models/beta/skills/version_create_params.rb,
lib/anthropic/models/beta/skills/version_delete_params.rb,
lib/anthropic/models/beta/skills/version_list_response.rb,
lib/anthropic/models/beta/beta_mcp_tool_use_block_param.rb,
lib/anthropic/models/beta/beta_raw_message_stream_event.rb,
lib/anthropic/models/beta/beta_thinking_config_disabled.rb,
lib/anthropic/models/beta/beta_web_search_tool_20250305.rb,
lib/anthropic/models/beta/file_retrieve_metadata_params.rb,
lib/anthropic/models/beta/messages/batch_results_params.rb,
lib/anthropic/models/web_search_tool_result_block_param.rb,
lib/anthropic/models/beta/beta_context_management_config.rb,
lib/anthropic/models/beta/beta_search_result_block_param.rb,
lib/anthropic/models/beta/beta_tool_text_editor_20241022.rb,
lib/anthropic/models/beta/beta_tool_text_editor_20250124.rb,
lib/anthropic/models/beta/beta_tool_text_editor_20250429.rb,
lib/anthropic/models/beta/beta_tool_text_editor_20250728.rb,
lib/anthropic/models/beta/messages/batch_retrieve_params.rb,
lib/anthropic/models/beta/skills/version_create_response.rb,
lib/anthropic/models/beta/skills/version_delete_response.rb,
lib/anthropic/models/beta/skills/version_retrieve_params.rb,
lib/anthropic/models/beta/beta_tool_computer_use_20241022.rb,
lib/anthropic/models/beta/beta_tool_computer_use_20250124.rb,
lib/anthropic/models/citations_web_search_result_location.rb,
lib/anthropic/models/web_search_tool_result_block_content.rb,
lib/anthropic/models/beta/beta_code_execution_output_block.rb,
lib/anthropic/models/beta/beta_code_execution_result_block.rb,
lib/anthropic/models/beta/beta_context_management_response.rb,
lib/anthropic/models/beta/beta_input_tokens_clear_at_least.rb,
lib/anthropic/models/beta/beta_server_tool_use_block_param.rb,
lib/anthropic/models/beta/beta_web_fetch_tool_result_block.rb,
lib/anthropic/models/beta/skills/version_retrieve_response.rb,
lib/anthropic/models/citation_content_block_location_param.rb,
lib/anthropic/models/citation_search_result_location_param.rb,
lib/anthropic/models/messages/message_batch_errored_result.rb,
lib/anthropic/models/messages/message_batch_expired_result.rb,
lib/anthropic/models/messages/message_batch_request_counts.rb,
lib/anthropic/models/beta/beta_citation_char_location_param.rb,
lib/anthropic/models/beta/beta_citation_page_location_param.rb,
lib/anthropic/models/beta/beta_clear_thinking_20251015_edit.rb,
lib/anthropic/models/beta/beta_code_execution_tool_20250522.rb,
lib/anthropic/models/beta/beta_code_execution_tool_20250825.rb,
lib/anthropic/models/beta/beta_container_upload_block_param.rb,
lib/anthropic/models/beta/beta_content_block_source_content.rb,
lib/anthropic/models/beta/beta_memory_tool_20250818_command.rb,
lib/anthropic/models/beta/beta_raw_content_block_stop_event.rb,
lib/anthropic/models/beta/beta_web_search_tool_result_block.rb,
lib/anthropic/models/beta/beta_web_search_tool_result_error.rb,
lib/anthropic/models/messages/message_batch_canceled_result.rb,
lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rb,
lib/anthropic/models/beta/beta_raw_content_block_delta_event.rb,
lib/anthropic/models/beta/beta_raw_content_block_start_event.rb,
lib/anthropic/models/beta/beta_redacted_thinking_block_param.rb,
lib/anthropic/models/beta/beta_web_search_result_block_param.rb,
lib/anthropic/models/beta/beta_web_search_tool_request_error.rb,
lib/anthropic/models/beta/messages/beta_message_batch_result.rb,
lib/anthropic/models/messages/message_batch_succeeded_result.rb,
lib/anthropic/models/beta/messages/beta_deleted_message_batch.rb,
lib/anthropic/models/beta/beta_citation_content_block_location.rb,
lib/anthropic/models/beta/beta_citation_search_result_location.rb,
lib/anthropic/models/citation_web_search_result_location_param.rb,
lib/anthropic/models/beta/beta_bash_code_execution_output_block.rb,
lib/anthropic/models/beta/beta_bash_code_execution_result_block.rb,
lib/anthropic/models/beta/beta_code_execution_tool_result_block.rb,
lib/anthropic/models/beta/beta_code_execution_tool_result_error.rb,
lib/anthropic/models/beta/beta_web_fetch_tool_result_error_code.rb,
lib/anthropic/models/messages/message_batch_individual_response.rb,
lib/anthropic/models/web_search_tool_result_block_param_content.rb,
lib/anthropic/models/beta/beta_code_execution_output_block_param.rb,
lib/anthropic/models/beta/beta_code_execution_result_block_param.rb,
lib/anthropic/models/beta/beta_memory_tool_20250818_view_command.rb,
lib/anthropic/models/beta/beta_request_mcp_server_url_definition.rb,
lib/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rb,
lib/anthropic/models/beta/beta_web_fetch_tool_result_error_block.rb,
lib/anthropic/models/beta/beta_web_search_tool_result_error_code.rb,
lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb,
lib/anthropic/models/beta/beta_memory_tool_20250818_create_command.rb,
lib/anthropic/models/beta/beta_memory_tool_20250818_delete_command.rb,
lib/anthropic/models/beta/beta_memory_tool_20250818_insert_command.rb,
lib/anthropic/models/beta/beta_memory_tool_20250818_rename_command.rb,
lib/anthropic/models/beta/beta_request_mcp_tool_result_block_param.rb,
lib/anthropic/models/beta/beta_citations_web_search_result_location.rb,
lib/anthropic/models/beta/beta_web_search_tool_result_block_content.rb,
lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rb,
lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rb,
lib/anthropic/models/beta/beta_citation_content_block_location_param.rb,
lib/anthropic/models/beta/beta_citation_search_result_location_param.rb,
lib/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rb,
lib/anthropic/models/beta/beta_code_execution_tool_result_error_code.rb,
lib/anthropic/models/beta/beta_request_mcp_server_tool_configuration.rb,
lib/anthropic/models/beta/messages/beta_message_batch_errored_result.rb,
lib/anthropic/models/beta/messages/beta_message_batch_expired_result.rb,
lib/anthropic/models/beta/messages/beta_message_batch_request_counts.rb,
lib/anthropic/models/beta/beta_bash_code_execution_output_block_param.rb,
lib/anthropic/models/beta/beta_bash_code_execution_result_block_param.rb,
lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rb,
lib/anthropic/models/beta/beta_code_execution_tool_result_block_param.rb,
lib/anthropic/models/beta/beta_code_execution_tool_result_error_param.rb,
lib/anthropic/models/beta/messages/beta_message_batch_canceled_result.rb,
lib/anthropic/models/beta/beta_web_fetch_tool_result_error_block_param.rb,
lib/anthropic/models/beta/messages/beta_message_batch_succeeded_result.rb,
lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb,
lib/anthropic/models/beta/beta_count_tokens_context_management_response.rb,
lib/anthropic/models/beta/beta_memory_tool_20250818_str_replace_command.rb,
lib/anthropic/models/beta/beta_citation_web_search_result_location_param.rb,
lib/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rb,
lib/anthropic/models/beta/messages/beta_message_batch_individual_response.rb,
lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block_param.rb,
lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rb,
lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rb,
lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb,
lib/anthropic/models/beta/beta_text_editor_code_execution_view_result_block.rb,
lib/anthropic/models/beta/beta_code_execution_tool_result_block_param_content.rb,
lib/anthropic/models/beta/beta_text_editor_code_execution_create_result_block.rb,
lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block_param.rb,
lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_param.rb,
lib/anthropic/models/beta/beta_text_editor_code_execution_view_result_block_param.rb,
lib/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block.rb,
lib/anthropic/models/beta/beta_text_editor_code_execution_create_result_block_param.rb,
lib/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block_param.rb

Defined Under Namespace

Modules: AnthropicBeta, Beta, BetaError, ContentBlock, ContentBlockParam, ContentBlockSourceContent, ErrorObject, MessageCountTokensTool, Messages, Model, RawContentBlockDelta, RawMessageStreamEvent, StopReason, TextCitation, TextCitationParam, ThinkingConfigParam, ToolChoice, ToolUnion, WebSearchToolResultBlockContent, WebSearchToolResultBlockParamContent Classes: APIErrorObject, AuthenticationError, Base64ImageSource, Base64PDFSource, BetaAPIError, BetaAuthenticationError, BetaBillingError, BetaErrorResponse, BetaGatewayTimeoutError, BetaInvalidRequestError, BetaNotFoundError, BetaOverloadedError, BetaPermissionError, BetaRateLimitError, BillingError, CacheControlEphemeral, CacheCreation, CitationCharLocation, CitationCharLocationParam, CitationContentBlockLocation, CitationContentBlockLocationParam, CitationPageLocation, CitationPageLocationParam, CitationSearchResultLocationParam, CitationWebSearchResultLocationParam, CitationsConfigParam, CitationsDelta, CitationsSearchResultLocation, CitationsWebSearchResultLocation, Completion, CompletionCreateParams, ContentBlockSource, DocumentBlockParam, ErrorResponse, GatewayTimeoutError, ImageBlockParam, InputJSONDelta, InvalidRequestError, Message, MessageCountTokensParams, MessageCreateParams, MessageDeltaUsage, MessageParam, MessageTokensCount, Metadata, ModelInfo, ModelListParams, ModelRetrieveParams, NotFoundError, OverloadedError, PermissionError, PlainTextSource, RateLimitError, RawContentBlockDeltaEvent, RawContentBlockStartEvent, RawContentBlockStopEvent, RawMessageDeltaEvent, RawMessageStartEvent, RawMessageStopEvent, RedactedThinkingBlock, RedactedThinkingBlockParam, SearchResultBlockParam, ServerToolUsage, ServerToolUseBlock, ServerToolUseBlockParam, TextBlock, TextBlockParam, TextDelta, ThinkingBlock, ThinkingBlockParam, ThinkingConfigDisabled, ThinkingConfigEnabled, ThinkingDelta, Tool, ToolBash20250124, ToolChoiceAny, ToolChoiceAuto, ToolChoiceNone, ToolChoiceTool, ToolResultBlockParam, ToolTextEditor20250124, ToolTextEditor20250429, ToolTextEditor20250728, ToolUseBlock, ToolUseBlockParam, URLImageSource, URLPDFSource, Usage, WebSearchResultBlock, WebSearchResultBlockParam, WebSearchTool20250305, WebSearchToolRequestError, WebSearchToolResultBlock, WebSearchToolResultBlockParam, WebSearchToolResultError

Constant Summary collapse

BetaTool =
Beta::BetaTool
BetaSkill =
Beta::BetaSkill
BetaUsage =
Beta::BetaUsage
BetaMessage =
Beta::BetaMessage
BetaMetadata =
Beta::BetaMetadata
BetaContainer =
Beta::BetaContainer
BetaModelInfo =
Beta::BetaModelInfo
BetaTextBlock =
Beta::BetaTextBlock
BetaTextDelta =
Beta::BetaTextDelta
BetaToolUnion =
Beta::BetaToolUnion
BetaStopReason =
Beta::BetaStopReason
BetaToolChoice =
Beta::BetaToolChoice
BetaSkillParams =
Beta::BetaSkillParams
MessageBatch =
Messages::MessageBatch
BetaContentBlock =
Beta::BetaContentBlock
BetaMessageParam =
Beta::BetaMessageParam
BetaTextCitation =
Beta::BetaTextCitation
BetaCacheCreation =
Beta::BetaCacheCreation
BetaDocumentBlock =
Beta::BetaDocumentBlock
BetaThinkingBlock =
Beta::BetaThinkingBlock
BetaThinkingDelta =
Beta::BetaThinkingDelta
BetaThinkingTurns =
Beta::BetaThinkingTurns
BetaToolUseBlock =
Beta::BetaToolUseBlock
BetaToolUsesKeep =
Beta::BetaToolUsesKeep
BetaURLPDFSource =
Beta::BetaURLPDFSource
BetaCitationConfig =
Beta::BetaCitationConfig
BetaCitationsDelta =
Beta::BetaCitationsDelta
BetaSignatureDelta =
Beta::BetaSignatureDelta
BetaToolChoiceAny =
Beta::BetaToolChoiceAny
BetaWebFetchBlock =
Beta::BetaWebFetchBlock
BetaBase64PDFBlock =
Beta::BetaBase64PDFBlock
BetaContainerParams =
Beta::BetaContainerParams
BetaInputJSONDelta =
Beta::BetaInputJSONDelta
BetaTextBlockParam =
Beta::BetaTextBlockParam
BetaToolChoiceAuto =
Beta::BetaToolChoiceAuto
BetaToolChoiceNone =
Beta::BetaToolChoiceNone
BetaToolChoiceTool =
Beta::BetaToolChoiceTool
BetaURLImageSource =
Beta::BetaURLImageSource
BetaBase64PDFSource =
Beta::BetaBase64PDFSource
BetaFileImageSource =
Beta::BetaFileImageSource
BetaImageBlockParam =
Beta::BetaImageBlockParam
BetaPlainTextSource =
Beta::BetaPlainTextSource
BetaServerToolUsage =
Beta::BetaServerToolUsage
BetaToolUsesTrigger =
Beta::BetaToolUsesTrigger
BetaAllThinkingTurns =
Beta::BetaAllThinkingTurns
BetaJSONOutputFormat =
Beta::BetaJSONOutputFormat
BetaMCPToolUseBlock =
Beta::BetaMCPToolUseBlock
BetaToolBash20241022 =
Beta::BetaToolBash20241022
BetaToolBash20250124 =
Beta::BetaToolBash20250124
BetaBase64ImageSource =
Beta::BetaBase64ImageSource
BetaContentBlockParam =
Beta::BetaContentBlockParam
BetaMessageDeltaUsage =
Beta::BetaMessageDeltaUsage
BetaTextCitationParam =
Beta::BetaTextCitationParam
MessageBatchResult =
Messages::MessageBatchResult
BetaContentBlockSource =
Beta::BetaContentBlockSource
BetaFileDocumentSource =
Beta::BetaFileDocumentSource
BetaInputTokensTrigger =
Beta::BetaInputTokensTrigger
BetaMemoryTool20250818 =
Beta::BetaMemoryTool20250818
BetaMessageTokensCount =
Beta::BetaMessageTokensCount
BetaThinkingBlockParam =
Beta::BetaThinkingBlockParam
BetaToolUseBlockParam =
Beta::BetaToolUseBlockParam
BetaMCPToolResultBlock =
Beta::BetaMCPToolResultBlock
BetaServerToolUseBlock =
Beta::BetaServerToolUseBlock
BetaThinkingConfigParam =
Beta::BetaThinkingConfigParam
BetaWebFetchBlockParam =
Beta::BetaWebFetchBlockParam
BetaCitationCharLocation =
Beta::BetaCitationCharLocation
BetaCitationPageLocation =
Beta::BetaCitationPageLocation
BetaCitationsConfigParam =
Beta::BetaCitationsConfigParam
BetaContainerUploadBlock =
Beta::BetaContainerUploadBlock
BetaRawMessageStopEvent =
Beta::BetaRawMessageStopEvent
BetaRequestDocumentBlock =
Beta::BetaRequestDocumentBlock
BetaCacheControlEphemeral =
Beta::BetaCacheControlEphemeral
BetaRawContentBlockDelta =
Beta::BetaRawContentBlockDelta
BetaRawMessageDeltaEvent =
Beta::BetaRawMessageDeltaEvent
BetaRawMessageStartEvent =
Beta::BetaRawMessageStartEvent
BetaRedactedThinkingBlock =
Beta::BetaRedactedThinkingBlock
BetaThinkingConfigEnabled =
Beta::BetaThinkingConfigEnabled
BetaToolResultBlockParam =
Beta::BetaToolResultBlockParam
BetaWebFetchTool20250910 =
Beta::BetaWebFetchTool20250910
BetaWebSearchResultBlock =
Beta::BetaWebSearchResultBlock
BetaMCPToolUseBlockParam =
Beta::BetaMCPToolUseBlockParam
BetaRawMessageStreamEvent =
Beta::BetaRawMessageStreamEvent
BetaThinkingConfigDisabled =
Beta::BetaThinkingConfigDisabled
BetaWebSearchTool20250305 =
Beta::BetaWebSearchTool20250305
BetaContextManagementConfig =
Beta::BetaContextManagementConfig
BetaSearchResultBlockParam =
Beta::BetaSearchResultBlockParam
BetaToolTextEditor20241022 =
Beta::BetaToolTextEditor20241022
BetaToolTextEditor20250124 =
Beta::BetaToolTextEditor20250124
BetaToolTextEditor20250429 =
Beta::BetaToolTextEditor20250429
BetaToolTextEditor20250728 =
Beta::BetaToolTextEditor20250728
BetaToolComputerUse20241022 =
Beta::BetaToolComputerUse20241022
BetaToolComputerUse20250124 =
Beta::BetaToolComputerUse20250124
BetaCodeExecutionOutputBlock =
Beta::BetaCodeExecutionOutputBlock
BetaCodeExecutionResultBlock =
Beta::BetaCodeExecutionResultBlock
BetaContextManagementResponse =
Beta::BetaContextManagementResponse
BetaInputTokensClearAtLeast =
Beta::BetaInputTokensClearAtLeast
BetaServerToolUseBlockParam =
Beta::BetaServerToolUseBlockParam
BetaWebFetchToolResultBlock =
Beta::BetaWebFetchToolResultBlock
MessageBatchErroredResult =
Messages::MessageBatchErroredResult
MessageBatchExpiredResult =
Messages::MessageBatchExpiredResult
MessageBatchRequestCounts =
Messages::MessageBatchRequestCounts
BetaCitationCharLocationParam =
Beta::BetaCitationCharLocationParam
BetaCitationPageLocationParam =
Beta::BetaCitationPageLocationParam
BetaClearThinking20251015Edit =
Beta::BetaClearThinking20251015Edit
BetaCodeExecutionTool20250522 =
Beta::BetaCodeExecutionTool20250522
BetaCodeExecutionTool20250825 =
Beta::BetaCodeExecutionTool20250825
BetaContainerUploadBlockParam =
Beta::BetaContainerUploadBlockParam
BetaContentBlockSourceContent =
Beta::BetaContentBlockSourceContent
BetaMemoryTool20250818Command =
Beta::BetaMemoryTool20250818Command
BetaRawContentBlockStopEvent =
Beta::BetaRawContentBlockStopEvent
BetaWebSearchToolResultBlock =
Beta::BetaWebSearchToolResultBlock
BetaWebSearchToolResultError =
Beta::BetaWebSearchToolResultError
MessageBatchCanceledResult =
Messages::MessageBatchCanceledResult
BetaClearToolUses20250919Edit =
Beta::BetaClearToolUses20250919Edit
BetaRawContentBlockDeltaEvent =
Beta::BetaRawContentBlockDeltaEvent
BetaRawContentBlockStartEvent =
Beta::BetaRawContentBlockStartEvent
BetaRedactedThinkingBlockParam =
Beta::BetaRedactedThinkingBlockParam
BetaWebSearchResultBlockParam =
Beta::BetaWebSearchResultBlockParam
BetaWebSearchToolRequestError =
Beta::BetaWebSearchToolRequestError
MessageBatchSucceededResult =
Messages::MessageBatchSucceededResult
BetaCitationContentBlockLocation =
Beta::BetaCitationContentBlockLocation
BetaCitationSearchResultLocation =
Beta::BetaCitationSearchResultLocation
BetaBashCodeExecutionOutputBlock =
Beta::BetaBashCodeExecutionOutputBlock
BetaBashCodeExecutionResultBlock =
Beta::BetaBashCodeExecutionResultBlock
BetaCodeExecutionToolResultBlock =
Beta::BetaCodeExecutionToolResultBlock
BetaCodeExecutionToolResultError =
Beta::BetaCodeExecutionToolResultError
BetaWebFetchToolResultErrorCode =
Beta::BetaWebFetchToolResultErrorCode
MessageBatchIndividualResponse =
Messages::MessageBatchIndividualResponse
BetaCodeExecutionOutputBlockParam =
Beta::BetaCodeExecutionOutputBlockParam
BetaCodeExecutionResultBlockParam =
Beta::BetaCodeExecutionResultBlockParam
BetaMemoryTool20250818ViewCommand =
Beta::BetaMemoryTool20250818ViewCommand
BetaRequestMCPServerURLDefinition =
Beta::BetaRequestMCPServerURLDefinition
BetaWebFetchToolResultBlockParam =
Beta::BetaWebFetchToolResultBlockParam
BetaWebFetchToolResultErrorBlock =
Beta::BetaWebFetchToolResultErrorBlock
BetaWebSearchToolResultErrorCode =
Beta::BetaWebSearchToolResultErrorCode
BetaWebSearchToolResultBlockParam =
Beta::BetaWebSearchToolResultBlockParam
BetaMemoryTool20250818CreateCommand =
Beta::BetaMemoryTool20250818CreateCommand
BetaMemoryTool20250818DeleteCommand =
Beta::BetaMemoryTool20250818DeleteCommand
BetaMemoryTool20250818InsertCommand =
Beta::BetaMemoryTool20250818InsertCommand
BetaMemoryTool20250818RenameCommand =
Beta::BetaMemoryTool20250818RenameCommand
BetaRequestMCPToolResultBlockParam =
Beta::BetaRequestMCPToolResultBlockParam
BetaCitationsWebSearchResultLocation =
Beta::BetaCitationsWebSearchResultLocation
BetaWebSearchToolResultBlockContent =
Beta::BetaWebSearchToolResultBlockContent
BetaBashCodeExecutionToolResultBlock =
Beta::BetaBashCodeExecutionToolResultBlock
BetaBashCodeExecutionToolResultError =
Beta::BetaBashCodeExecutionToolResultError
BetaCitationContentBlockLocationParam =
Beta::BetaCitationContentBlockLocationParam
BetaCitationSearchResultLocationParam =
Beta::BetaCitationSearchResultLocationParam
BetaClearThinking20251015EditResponse =
Beta::BetaClearThinking20251015EditResponse
BetaCodeExecutionToolResultErrorCode =
Beta::BetaCodeExecutionToolResultErrorCode
BetaRequestMCPServerToolConfiguration =
Beta::BetaRequestMCPServerToolConfiguration
BetaBashCodeExecutionOutputBlockParam =
Beta::BetaBashCodeExecutionOutputBlockParam
BetaBashCodeExecutionResultBlockParam =
Beta::BetaBashCodeExecutionResultBlockParam
BetaClearToolUses20250919EditResponse =
Beta::BetaClearToolUses20250919EditResponse
BetaCodeExecutionToolResultBlockParam =
Beta::BetaCodeExecutionToolResultBlockParam
BetaCodeExecutionToolResultErrorParam =
Beta::BetaCodeExecutionToolResultErrorParam
BetaWebFetchToolResultErrorBlockParam =
Beta::BetaWebFetchToolResultErrorBlockParam
BetaCodeExecutionToolResultBlockContent =
Beta::BetaCodeExecutionToolResultBlockContent
BetaCountTokensContextManagementResponse =
Beta::BetaCountTokensContextManagementResponse
BetaMemoryTool20250818StrReplaceCommand =
Beta::BetaMemoryTool20250818StrReplaceCommand
BetaCitationWebSearchResultLocationParam =
Beta::BetaCitationWebSearchResultLocationParam
BetaWebSearchToolResultBlockParamContent =
Beta::BetaWebSearchToolResultBlockParamContent
BetaBashCodeExecutionToolResultBlockParam =
Beta::BetaBashCodeExecutionToolResultBlockParam
BetaBashCodeExecutionToolResultErrorParam =
Beta::BetaBashCodeExecutionToolResultErrorParam
BetaTextEditorCodeExecutionToolResultBlock =
Beta::BetaTextEditorCodeExecutionToolResultBlock
BetaTextEditorCodeExecutionToolResultError =
Beta::BetaTextEditorCodeExecutionToolResultError
BetaTextEditorCodeExecutionViewResultBlock =
Beta::BetaTextEditorCodeExecutionViewResultBlock
BetaCodeExecutionToolResultBlockParamContent =
Beta::BetaCodeExecutionToolResultBlockParamContent
BetaTextEditorCodeExecutionCreateResultBlock =
Beta::BetaTextEditorCodeExecutionCreateResultBlock
BetaTextEditorCodeExecutionToolResultBlockParam =
Beta::BetaTextEditorCodeExecutionToolResultBlockParam
BetaTextEditorCodeExecutionToolResultErrorParam =
Beta::BetaTextEditorCodeExecutionToolResultErrorParam
BetaTextEditorCodeExecutionViewResultBlockParam =
Beta::BetaTextEditorCodeExecutionViewResultBlockParam
BetaTextEditorCodeExecutionStrReplaceResultBlock =
Beta::BetaTextEditorCodeExecutionStrReplaceResultBlock
BetaTextEditorCodeExecutionCreateResultBlockParam =
Beta::BetaTextEditorCodeExecutionCreateResultBlockParam
BetaTextEditorCodeExecutionStrReplaceResultBlockParam =
Beta::BetaTextEditorCodeExecutionStrReplaceResultBlockParam

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/beta/beta_tool.rb', line 103

Instance Method Details

#initialize(lines: nil, new_lines: nil, new_start: nil, old_lines: nil, old_start: nil, type: :text_editor_code_execution_str_replace_result) ⇒ void

Parameters:

  • lines (Array<String>, nil) (defaults to: nil)
  • new_lines (Integer, nil) (defaults to: nil)
  • new_start (Integer, nil) (defaults to: nil)
  • old_lines (Integer, nil) (defaults to: nil)
  • old_start (Integer, nil) (defaults to: nil)
  • type (Symbol, :text_editor_code_execution_str_replace_result) (defaults to: :text_editor_code_execution_str_replace_result)


# File 'lib/anthropic/models/beta/beta_message.rb', line 155