Class: ClaudeAgentSDK::TaskBudget

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

Overview

API-side task budget in tokens. When set, the model is made aware of its remaining token budget so it can pace tool use and wrap up before the limit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #initialize, wrap

Constructor Details

This class inherits a constructor from ClaudeAgentSDK::Type

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#totalObject

Returns the value of attribute total.



1492
1493
1494
# File 'lib/claude_agent_sdk/types.rb', line 1492

def total
  @total
end

Instance Method Details

#to_hObject



1494
1495
1496
# File 'lib/claude_agent_sdk/types.rb', line 1494

def to_h
  { total: @total }
end