Module: Anthropic::Models::Beta::BetaThinkingConfigParam
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/beta_thinking_config_param.rb,
sig/anthropic/models/beta/beta_thinking_config_param.rbs
Overview
Configuration for Claude's thinking.
With {"type": "adaptive"}, Claude decides when and how much to think. With
{"type": "enabled"} (manual extended thinking), you set a budget_tokens of
at least 1,024. Thinking tokens count toward your max_tokens limit.
Which type values are accepted, and what happens when you omit thinking,
depend on the model. See
thinking
for each model's behavior.
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::beta_thinking_config_param
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::BetaThinkingConfigParam for more details.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/anthropic/models/beta/beta_thinking_config_param.rb', line 62 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_thinking_config_param.rb', line 37
|
.variants ⇒ Array(Anthropic::Models::Beta::BetaThinkingConfigEnabled, Anthropic::Models::Beta::BetaThinkingConfigDisabled, Anthropic::Models::Beta::BetaThinkingConfigBetweenTools, Anthropic::Models::Beta::BetaThinkingConfigAdaptive)
|
|
# File 'lib/anthropic/models/beta/beta_thinking_config_param.rb', line 41
|