Class: ClaudeAgentSDK::ThinkingConfigEnabled

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Enabled thinking: uses a user-specified budget

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(budget_tokens:, display: nil) ⇒ ThinkingConfigEnabled

Returns a new instance of ThinkingConfigEnabled.



635
636
637
638
639
# File 'lib/claude_agent_sdk/types.rb', line 635

def initialize(budget_tokens:, display: nil)
  @type = 'enabled'
  @budget_tokens = budget_tokens
  @display = validate_display(display)
end

Instance Attribute Details

#budget_tokensObject

Returns the value of attribute budget_tokens.



633
634
635
# File 'lib/claude_agent_sdk/types.rb', line 633

def budget_tokens
  @budget_tokens
end

#displayObject

Returns the value of attribute display.



633
634
635
# File 'lib/claude_agent_sdk/types.rb', line 633

def display
  @display
end

#typeObject

Returns the value of attribute type.



633
634
635
# File 'lib/claude_agent_sdk/types.rb', line 633

def type
  @type
end