Class: Anthropic::Models::Beta::BetaThinkingTypes
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaThinkingTypes
- Defined in:
- lib/anthropic/models/beta/beta_thinking_types.rb,
sig/anthropic/models/beta/beta_thinking_types.rbs
Instance Attribute Summary collapse
-
#adaptive ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
-
#between_tools ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
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::Beta::BetaCapabilitySupport
Whether the model accepts thinking with type 'disabled' (thinking turned off).
-
#enabled ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set
budget_tokens).
Instance Method Summary collapse
-
#initialize ⇒ BetaThinkingTypes
constructor
A new instance of BetaThinkingTypes.
- #to_hash ⇒ { adaptive: Anthropic::Beta::BetaCapabilitySupport, between_tools: Anthropic::Beta::BetaCapabilitySupport, disabled: Anthropic::Beta::BetaCapabilitySupport, enabled: Anthropic::Beta::BetaCapabilitySupport }
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 ⇒ BetaThinkingTypes
Returns a new instance of BetaThinkingTypes.
23 24 25 26 27 28 |
# File 'sig/anthropic/models/beta/beta_thinking_types.rbs', line 23
def initialize: (
adaptive: Anthropic::Beta::BetaCapabilitySupport,
between_tools: Anthropic::Beta::BetaCapabilitySupport,
disabled: Anthropic::Beta::BetaCapabilitySupport,
enabled: Anthropic::Beta::BetaCapabilitySupport
) -> void
|
Instance Attribute Details
#adaptive ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
12 |
# File 'lib/anthropic/models/beta/beta_thinking_types.rb', line 12 required :adaptive, -> { Anthropic::Beta::BetaCapabilitySupport } |
#between_tools ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
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.
23 |
# File 'lib/anthropic/models/beta/beta_thinking_types.rb', line 23 required :between_tools, -> { Anthropic::Beta::BetaCapabilitySupport } |
#disabled ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
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.
33 |
# File 'lib/anthropic/models/beta/beta_thinking_types.rb', line 33 required :disabled, -> { Anthropic::Beta::BetaCapabilitySupport } |
#enabled ⇒ Anthropic::Models::Beta::BetaCapabilitySupport
Whether the model accepts thinking with type 'enabled' (extended thinking with a
caller-set budget_tokens).
40 |
# File 'lib/anthropic/models/beta/beta_thinking_types.rb', line 40 required :enabled, -> { Anthropic::Beta::BetaCapabilitySupport } |
Instance Method Details
#to_hash ⇒ { adaptive: Anthropic::Beta::BetaCapabilitySupport, between_tools: Anthropic::Beta::BetaCapabilitySupport, disabled: Anthropic::Beta::BetaCapabilitySupport, enabled: Anthropic::Beta::BetaCapabilitySupport }
30 31 32 33 34 35 |
# File 'sig/anthropic/models/beta/beta_thinking_types.rbs', line 30
def to_hash: -> {
adaptive: Anthropic::Beta::BetaCapabilitySupport,
between_tools: Anthropic::Beta::BetaCapabilitySupport,
disabled: Anthropic::Beta::BetaCapabilitySupport,
enabled: Anthropic::Beta::BetaCapabilitySupport
}
|