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).
| Field | Type | Default |
|---|---|---|
steps_remaining | int | |
tool_calls_remaining | int | |
elapsed_seconds | float | |
wall_clock_remaining | float | None |