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.



1412
1413
1414
# File 'lib/claude_agent_sdk/types.rb', line 1412

def total
  @total
end

Instance Method Details

#to_hObject



1414
1415
1416
# File 'lib/claude_agent_sdk/types.rb', line 1414

def to_h
  { total: @total }
end