Class: Anthropic::Models::ThinkingTypes
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::ThinkingTypes
- Defined in:
- lib/anthropic/models/thinking_types.rb,
sig/anthropic/models/thinking_types.rbs
Instance Attribute Summary collapse
-
#adaptive ⇒ Anthropic::Models::CapabilitySupport
Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
-
#between_tools ⇒ Anthropic::Models::CapabilitySupport
Whether the model accepts thinking with type 'between_tools' (thinking turned off, and any short progress updates the model writes between tool calls come back as thinking blocks).
-
#disabled ⇒ Anthropic::Models::CapabilitySupport
Whether the model accepts thinking with type 'disabled' (thinking turned off).
-
#enabled ⇒ Anthropic::Models::CapabilitySupport
Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set
budget_tokens).
Instance Method Summary collapse
-
#initialize(adaptive:, between_tools:, disabled:, enabled:) ⇒ ThinkingTypes
constructor
Which
thinking.typevalues the model accepts on requests. - #to_hash ⇒ { adaptive: Anthropic::CapabilitySupport, between_tools: Anthropic::CapabilitySupport, disabled: Anthropic::CapabilitySupport, enabled: Anthropic::CapabilitySupport }
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(adaptive:, between_tools:, disabled:, enabled:) ⇒ ThinkingTypes
Which thinking.type values the model accepts on requests. Read each key on its
own: for example, enabled can be false while disabled is true.
Some parameter documentations has been truncated, see Anthropic::Models::ThinkingTypes for more details.
|
|
# File 'lib/anthropic/models/thinking_types.rb', line 41
|
Instance Attribute Details
#adaptive ⇒ Anthropic::Models::CapabilitySupport
Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
11 |
# File 'lib/anthropic/models/thinking_types.rb', line 11 required :adaptive, -> { Anthropic::CapabilitySupport } |
#between_tools ⇒ Anthropic::Models::CapabilitySupport
Whether the model accepts thinking with type 'between_tools' (thinking turned off, and any short progress updates the model writes between tool calls come back as thinking blocks). False exactly when a request that sends it gets a 400 from this model. A request that sends 'between_tools' can still be rejected for another reason, such as an effort level the model does not allow with thinking off.
22 |
# File 'lib/anthropic/models/thinking_types.rb', line 22 required :between_tools, -> { Anthropic::CapabilitySupport } |
#disabled ⇒ Anthropic::Models::CapabilitySupport
Whether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking. A request that sends 'disabled' can still be rejected for another reason, such as an effort level the model does not allow with thinking off.
32 |
# File 'lib/anthropic/models/thinking_types.rb', line 32 required :disabled, -> { Anthropic::CapabilitySupport } |
#enabled ⇒ Anthropic::Models::CapabilitySupport
Whether the model accepts thinking with type 'enabled' (extended thinking with a
caller-set budget_tokens).
39 |
# File 'lib/anthropic/models/thinking_types.rb', line 39 required :enabled, -> { Anthropic::CapabilitySupport } |
Instance Method Details
#to_hash ⇒ { adaptive: Anthropic::CapabilitySupport, between_tools: Anthropic::CapabilitySupport, disabled: Anthropic::CapabilitySupport, enabled: Anthropic::CapabilitySupport }
27 28 29 30 31 32 |
# File 'sig/anthropic/models/thinking_types.rbs', line 27
def to_hash: -> {
adaptive: Anthropic::CapabilitySupport,
between_tools: Anthropic::CapabilitySupport,
disabled: Anthropic::CapabilitySupport,
enabled: Anthropic::CapabilitySupport
}
|