Module: Anthropic::Models::Beta::BetaFallbackParam::Thinking
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/beta_fallback_param.rb,
sig/anthropic/models/beta/beta_fallback_param.rbs
Overview
The thinking configuration for the fallback attempt that uses this fallbacks
entry's model. If you leave it out, the attempt uses the request's thinking
when model supports that thinking type.
If you leave it out and the request's thinking type is between_tools but
model doesn't support between_tools, the attempt uses disabled if model
supports it. Otherwise, if model doesn't support the request's thinking
type, if the request doesn't set thinking, or if you set this field to
null, the attempt uses the thinking type that model uses when a request
leaves out thinking. The request's thinking.display still applies where
model allows it.
These rules apply with the server-side-fallback-2026-07-01 beta header.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::BetaThinkingConfigEnabled, ...
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Beta::BetaThinkingConfigEnabled, Anthropic::Models::Beta::BetaThinkingConfigDisabled, Anthropic::Models::Beta::BetaThinkingConfigBetweenTools, Anthropic::Models::Beta::BetaThinkingConfigAdaptive)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:, budget_tokens:, block_binding:, display_:) ⇒ Anthropic::Beta::BetaThinkingConfigEnabled .new(type:) ⇒ Anthropic::Beta::BetaThinkingConfigDisabled .new(type:) ⇒ Anthropic::Beta::BetaThinkingConfigBetweenTools .new(type:, block_binding:, display_:) ⇒ Anthropic::Beta::BetaThinkingConfigAdaptive .new(type:, budget_tokens:, block_binding:, display_:) ⇒ Anthropic::Models::Beta::BetaFallbackParam::thinking
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaFallbackParam::Thinking for more details.
186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/anthropic/models/beta/beta_fallback_param.rb', line 186 def self.new(type:, **args) case type.to_sym when :enabled Anthropic::Beta::BetaThinkingConfigEnabled.new(**args) when :disabled Anthropic::Beta::BetaThinkingConfigDisabled.new(**args) when :between_tools Anthropic::Beta::BetaThinkingConfigBetweenTools.new(**args) when :adaptive Anthropic::Beta::BetaThinkingConfigAdaptive.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/beta_fallback_param.rb', line 161
|
.variants ⇒ Array(Anthropic::Models::Beta::BetaThinkingConfigEnabled, Anthropic::Models::Beta::BetaThinkingConfigDisabled, Anthropic::Models::Beta::BetaThinkingConfigBetweenTools, Anthropic::Models::Beta::BetaThinkingConfigAdaptive)
|
|
# File 'lib/anthropic/models/beta/beta_fallback_param.rb', line 165
|