Anthropic::ThinkingConfig
Inherits JSON::Serializable < Struct < Value < Object
Extended thinking configuration
Enable extended thinking to let Claude show its reasoning process.
# Enable with token budget
thinking: Anthropic::ThinkingConfig.enabled(budget_tokens: 1600)
# Or disable
thinking: Anthropic::ThinkingConfig.disabled
Constructors
adaptive
Adaptive thinking (Opus 4.6+)
Lets the model decide how much thinking to use based on the task.
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
budget_tokens
Sourcetype
Source