Skip to main content

Module budget_tool

Module budget_tool 

Source
Expand description

Budget tool — wraps AgentApi budget methods behind the AgentTool interface.

Provides agents with budget management capabilities. Actions: check, set, reserve, reset.

§Example

{ "action": "check", "agent_id": "uuid" }
{ "action": "set", "agent_id": "uuid", "limit": 100000 }
{ "action": "reserve", "agent_id": "uuid", "tokens": 500 }
{ "action": "reset", "agent_id": "uuid" }

Structs§

BudgetTool
Agent tool for budget management.