Expand description
Cost-budget enforcement for the agentic loop.
Checked before every provider request. Reads CostGuardrails from
env vars (CODETETHER_COST_WARN_USD, CODETETHER_COST_LIMIT_USD)
and compares against the running session cost estimate from
crate::provider::pricing::session_cost_usd.
Enums§
- Cost
Guard Level - UI-facing severity of the current session’s spend.
- Cost
Guard Status - Result of a budget check.
Functions§
- cost_
guard_ level - Non-mutating probe used by UI widgets to color the cost badge.
- enforce_
cost_ budget - Enforce the cost budget before sending a provider request.