Expand description
Budget manager for agent-level token and call budget tracking.
Implements sliding window budgets that reset after a configurable time period. Budgets track tokens and calls per agent, preventing resource exhaustion attacks and enforcing fair usage policies.
Structs§
- Budget
Exceeded - Error when a budget limit is exceeded.
- Budget
Info - Budget information returned to callers.
- Budget
Limit - Budget limit configuration for an agent.
- Budget
Manager - Manages budgets for all agents with sliding window reset semantics.
- Usage
- Current usage state for an agent.
Enums§
- Budget
Kind - Kind of budget that was exceeded.