Class: Anthropic::Models::ModelCapabilities

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/model_capabilities.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(batch:, citations:, code_execution:, context_management:, effort:, image_input:, pdf_input:, structured_outputs:, thinking:) ⇒ void

Model capability information.

Parameters:



# File 'lib/anthropic/models/model_capabilities.rb', line 60

Instance Attribute Details

#batchAnthropic::Models::CapabilitySupport

Whether the model supports the Batch API.



10
# File 'lib/anthropic/models/model_capabilities.rb', line 10

required :batch, -> { Anthropic::CapabilitySupport }

#citationsAnthropic::Models::CapabilitySupport

Whether the model supports citation generation.



16
# File 'lib/anthropic/models/model_capabilities.rb', line 16

required :citations, -> { Anthropic::CapabilitySupport }

#code_executionAnthropic::Models::CapabilitySupport

Whether the model supports code execution tools.



22
# File 'lib/anthropic/models/model_capabilities.rb', line 22

required :code_execution, -> { Anthropic::CapabilitySupport }

#context_managementAnthropic::Models::ContextManagementCapability

Context management support and available strategies.



28
# File 'lib/anthropic/models/model_capabilities.rb', line 28

required :context_management, -> { Anthropic::ContextManagementCapability }

#effortAnthropic::Models::EffortCapability

Effort (reasoning_effort) support and available levels.



34
# File 'lib/anthropic/models/model_capabilities.rb', line 34

required :effort, -> { Anthropic::EffortCapability }

#image_inputAnthropic::Models::CapabilitySupport

Whether the model accepts image content blocks.



40
# File 'lib/anthropic/models/model_capabilities.rb', line 40

required :image_input, -> { Anthropic::CapabilitySupport }

#pdf_inputAnthropic::Models::CapabilitySupport

Whether the model accepts PDF content blocks.



46
# File 'lib/anthropic/models/model_capabilities.rb', line 46

required :pdf_input, -> { Anthropic::CapabilitySupport }

#structured_outputsAnthropic::Models::CapabilitySupport

Whether the model supports structured output / JSON mode / strict tool schemas.



52
# File 'lib/anthropic/models/model_capabilities.rb', line 52

required :structured_outputs, -> { Anthropic::CapabilitySupport }

#thinkingAnthropic::Models::ThinkingCapability

Thinking capability and supported type configurations.



58
# File 'lib/anthropic/models/model_capabilities.rb', line 58

required :thinking, -> { Anthropic::ThinkingCapability }