Skip to main content

Module budget

Module budget 

Source
Expand description

Action budgets (Module B): stateful tool limits — per-tool caps via max_tool_calls (e.g. db_write: 3), payout ceilings via max_payout_usd_micros — plus per-session token ceilings.

Money is tracked in integer micro-USD; a payout of $12.34 spends 12_340_000. Fractional-cent dust can therefore never accumulate invisibly.

Structs§

ActionBudget
Budget enforcement bound to a session id and a state store.
BudgetSpec
Declarative budget for one session/agent (config-file surface).

Enums§

BudgetDecision
Outcome of a budget check.