jeevesagent.governance.budget¶
Token / call / cost budgets.
StandardBudget enforces hard limits on tokens, cost, and
wall clock; emits a soft warning at a configurable threshold.
NoBudget is the always-allow stub used when the user has
opted out of governance entirely.
Classes¶
Never blocks, never warns. |
|
Hard-limited, thread-safe budget tracker. |
Module Contents¶
- class jeevesagent.governance.budget.BudgetConfig[source]¶
-
- max_wall_clock: datetime.timedelta | None = None¶
- class jeevesagent.governance.budget.NoBudget[source]¶
Never blocks, never warns.
- async allows_step() jeevesagent.core.types.BudgetStatus[source]¶