Class: ClaudeAgentSDK::ThinkingConfigEnabled
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::ThinkingConfigEnabled
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Enabled thinking: uses a user-specified budget
Instance Attribute Summary collapse
-
#budget_tokens ⇒ Object
Returns the value of attribute budget_tokens.
-
#display ⇒ Object
Returns the value of attribute display.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(budget_tokens:, display: nil) ⇒ ThinkingConfigEnabled
constructor
A new instance of ThinkingConfigEnabled.
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_tokens ⇒ Object
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 |
#display ⇒ Object
Returns the value of attribute display.
633 634 635 |
# File 'lib/claude_agent_sdk/types.rb', line 633 def display @display end |
#type ⇒ Object
Returns the value of attribute type.
633 634 635 |
# File 'lib/claude_agent_sdk/types.rb', line 633 def type @type end |