Class: Anthropic::Models::Beta::BetaModelCapabilities
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaModelCapabilities
- Defined in:
- lib/anthropic/models/beta/beta_model_capabilities.rb,
sig/anthropic/models/beta/beta_model_capabilities.rbs
Instance Attribute Summary collapse
-
#batch ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model supports the Batch API.
-
#citations ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model supports citation generation.
-
#code_execution ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether code that the model runs in the code execution tool can call the request's other tools, as in programmatic tool calling and dynamic filtering for web search and web fetch.
-
#compaction ⇒ Anthropic::Models::Beta::BetaCompactionCapability?
Server-side compaction support (the top-level
compactionparameter) and the acceptedcompaction.typevalues. -
#context_management ⇒ Anthropic::Models::Beta::BetaContextManagementCapability
Context management support and available strategies.
-
#effort ⇒ Anthropic::Models::Beta::BetaEffortCapability
Effort (reasoning_effort) support and available levels.
-
#image_input ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model accepts image content blocks.
-
#pdf_input ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model accepts PDF content blocks.
-
#server_tools ⇒ Anthropic::Models::Beta::BetaServerToolsCapability
Whether this model supports the web search and code execution server tools.
-
#structured_outputs ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model supports structured output / JSON mode / strict tool schemas.
-
#thinking ⇒ Anthropic::Models::Beta::BetaThinkingCapability
Thinking capability and supported type configurations.
Instance Method Summary collapse
-
#initialize ⇒ BetaModelCapabilities
constructor
A new instance of BetaModelCapabilities.
- #to_hash ⇒ { batch: Anthropic::Beta::BetaCapabilitySupport, citations: Anthropic::Beta::BetaCapabilitySupport, code_execution: Anthropic::Beta::BetaCapabilitySupport, compaction: Anthropic::Beta::BetaCompactionCapability?, context_management: Anthropic::Beta::BetaContextManagementCapability, effort: Anthropic::Beta::BetaEffortCapability, image_input: Anthropic::Beta::BetaCapabilitySupport, pdf_input: Anthropic::Beta::BetaCapabilitySupport, server_tools: Anthropic::Beta::BetaServerToolsCapability, structured_outputs: Anthropic::Beta::BetaCapabilitySupport, thinking: Anthropic::Beta::BetaThinkingCapability }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ BetaModelCapabilities
Returns a new instance of BetaModelCapabilities.
44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'sig/anthropic/models/beta/beta_model_capabilities.rbs', line 44
def initialize: (
batch: Anthropic::Beta::BetaCapabilitySupport,
citations: Anthropic::Beta::BetaCapabilitySupport,
code_execution: Anthropic::Beta::BetaCapabilitySupport,
compaction: Anthropic::Beta::BetaCompactionCapability?,
context_management: Anthropic::Beta::BetaContextManagementCapability,
effort: Anthropic::Beta::BetaEffortCapability,
image_input: Anthropic::Beta::BetaCapabilitySupport,
pdf_input: Anthropic::Beta::BetaCapabilitySupport,
server_tools: Anthropic::Beta::BetaServerToolsCapability,
structured_outputs: Anthropic::Beta::BetaCapabilitySupport,
thinking: Anthropic::Beta::BetaThinkingCapability
) -> void
|
Instance Attribute Details
#batch ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model supports the Batch API.
11 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 11 required :batch, -> { Anthropic::Beta::BetaCapabilitySupport } |
#citations ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model supports citation generation.
17 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 17 required :citations, -> { Anthropic::Beta::BetaCapabilitySupport } |
#code_execution ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether code that the model runs in the code execution tool can call the
request's other tools, as in programmatic tool calling and dynamic filtering for
web search and web fetch. Support for the code execution tool itself is in
server_tools.code_execution.
26 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 26 required :code_execution, -> { Anthropic::Beta::BetaCapabilitySupport } |
#compaction ⇒ Anthropic::Models::Beta::BetaCompactionCapability?
Server-side compaction support (the top-level compaction parameter) and the
accepted compaction.type values.
33 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 33 required :compaction, -> { Anthropic::Beta::BetaCompactionCapability }, nil?: true |
#context_management ⇒ Anthropic::Models::Beta::BetaContextManagementCapability
Context management support and available strategies.
39 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 39 required :context_management, -> { Anthropic::Beta::BetaContextManagementCapability } |
#effort ⇒ Anthropic::Models::Beta::BetaEffortCapability
Effort (reasoning_effort) support and available levels.
45 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 45 required :effort, -> { Anthropic::Beta::BetaEffortCapability } |
#image_input ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model accepts image content blocks.
51 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 51 required :image_input, -> { Anthropic::Beta::BetaCapabilitySupport } |
#pdf_input ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model accepts PDF content blocks.
57 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 57 required :pdf_input, -> { Anthropic::Beta::BetaCapabilitySupport } |
#server_tools ⇒ Anthropic::Models::Beta::BetaServerToolsCapability
Whether this model supports the web search and code execution server tools.
supported is true when the model supports at least one of the tools. A
supported tool can still be rejected for your organization, for example when an
admin has turned web search off.
66 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 66 required :server_tools, -> { Anthropic::Beta::BetaServerToolsCapability } |
#structured_outputs ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model supports structured output / JSON mode / strict tool schemas.
72 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 72 required :structured_outputs, -> { Anthropic::Beta::BetaCapabilitySupport } |
#thinking ⇒ Anthropic::Models::Beta::BetaThinkingCapability
Thinking capability and supported type configurations.
78 |
# File 'lib/anthropic/models/beta/beta_model_capabilities.rb', line 78 required :thinking, -> { Anthropic::Beta::BetaThinkingCapability } |
Instance Method Details
#to_hash ⇒ { batch: Anthropic::Beta::BetaCapabilitySupport, citations: Anthropic::Beta::BetaCapabilitySupport, code_execution: Anthropic::Beta::BetaCapabilitySupport, compaction: Anthropic::Beta::BetaCompactionCapability?, context_management: Anthropic::Beta::BetaContextManagementCapability, effort: Anthropic::Beta::BetaEffortCapability, image_input: Anthropic::Beta::BetaCapabilitySupport, pdf_input: Anthropic::Beta::BetaCapabilitySupport, server_tools: Anthropic::Beta::BetaServerToolsCapability, structured_outputs: Anthropic::Beta::BetaCapabilitySupport, thinking: Anthropic::Beta::BetaThinkingCapability }
58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'sig/anthropic/models/beta/beta_model_capabilities.rbs', line 58
def to_hash: -> {
batch: Anthropic::Beta::BetaCapabilitySupport,
citations: Anthropic::Beta::BetaCapabilitySupport,
code_execution: Anthropic::Beta::BetaCapabilitySupport,
compaction: Anthropic::Beta::BetaCompactionCapability?,
context_management: Anthropic::Beta::BetaContextManagementCapability,
effort: Anthropic::Beta::BetaEffortCapability,
image_input: Anthropic::Beta::BetaCapabilitySupport,
pdf_input: Anthropic::Beta::BetaCapabilitySupport,
server_tools: Anthropic::Beta::BetaServerToolsCapability,
structured_outputs: Anthropic::Beta::BetaCapabilitySupport,
thinking: Anthropic::Beta::BetaThinkingCapability
}
|