Skip to main content

Module budget

Module budget 

Source
Expand description

Cost and token budget enforcement.

Tracks spending against configurable limits and determines whether the agent should continue or stop.

Structs§

BudgetConfig
Configuration for budget limits.

Enums§

BudgetDecision
Budget check result.

Functions§

check_budget
Check whether the current spend is within budget.
should_continue_turn
Continuation check for token budget during multi-turn execution.