lib/anthropic/models/beta/beta_content_block_param.rb
# frozen_string_literal: true module Anthropic module Models module Beta # Regular text content. module BetaContentBlockParam extend Anthropic::Internal::Type::Union discriminator :type # Regular text content. variant :text, -> { Anthropic::Beta::BetaTextBlockParam } # Image content specified directly as base64 data or as a reference via a URL. variant :image, -> { Anthropic::Beta::BetaImageBlockParam } # Document content, either specified directly as base64 data, as text, or as a reference via a URL. variant :document, -> { Anthropic::Beta::BetaRequestDocumentBlock } # A search result block containing source, title, and content from search operations. variant :search_result, -> { Anthropic::Beta::BetaSearchResultBlockParam } # A block specifying internal thinking by the model. variant :thinking, -> { Anthropic::Beta::BetaThinkingBlockParam } # A block specifying internal, redacted thinking by the model. variant :redacted_thinking, -> { Anthropic::Beta::BetaRedactedThinkingBlockParam } # A block indicating a tool use by the model. variant :tool_use, -> { Anthropic::Beta::BetaToolUseBlockParam } # A block specifying the results of a tool use by the model. variant :tool_result, -> { Anthropic::Beta::BetaToolResultBlockParam } variant :server_tool_use, -> { Anthropic::Beta::BetaServerToolUseBlockParam } variant :web_search_tool_result, -> { Anthropic::Beta::BetaWebSearchToolResultBlockParam } variant :code_execution_tool_result, -> { Anthropic::Beta::BetaCodeExecutionToolResultBlockParam } variant :mcp_tool_use, -> { Anthropic::Beta::BetaMCPToolUseBlockParam } variant :mcp_tool_result, -> { Anthropic::Beta::BetaRequestMCPToolResultBlockParam } # A content block that represents a file to be uploaded to the container # Files uploaded via this block will be available in the container's input directory. variant :container_upload, -> { Anthropic::Beta::BetaContainerUploadBlockParam } # @!method self.variants # @return [Array(Anthropic::Models::Beta::BetaTextBlockParam, Anthropic::Models::Beta::BetaImageBlockParam, Anthropic::Models::Beta::BetaRequestDocumentBlock, Anthropic::Models::Beta::BetaSearchResultBlockParam, Anthropic::Models::Beta::BetaThinkingBlockParam, Anthropic::Models::Beta::BetaRedactedThinkingBlockParam, Anthropic::Models::Beta::BetaToolUseBlockParam, Anthropic::Models::Beta::BetaToolResultBlockParam, Anthropic::Models::Beta::BetaServerToolUseBlockParam, Anthropic::Models::Beta::BetaWebSearchToolResultBlockParam, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaMCPToolUseBlockParam, Anthropic::Models::Beta::BetaRequestMCPToolResultBlockParam, Anthropic::Models::Beta::BetaContainerUploadBlockParam)] end end BetaContentBlockParam = Beta::BetaContentBlockParam end end