Skip to main content

ctx.budget

Service type: BudgetView (from apollia.context.budget).

BudgetView​

Bases: Protocol

Runtime step budget tracking, read-only from the agent's perspective.

The actual enforcement happens in the Rust runtime (StepBudget actor). This view lets agents introspect remaining budget without bypassing the non-negotiable guard-rails (Principle 7).

FieldTypeDefault
steps_remainingint
tool_calls_remainingint
elapsed_secondsfloat
wall_clock_remainingfloat | None