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.



1421
1422
1423
# File 'lib/claude_agent_sdk/types.rb', line 1421

def total
  @total
end

Instance Method Details

#to_hObject



1423
1424
1425
# File 'lib/claude_agent_sdk/types.rb', line 1423

def to_h
  { total: @total }
end