Skip to main content

Module budget

Module budget 

Source
Expand description

Per-run budget: step / token / wall-clock bounds.

This is the per-run budget enforced inside one agent loop (step / token / wall-clock). The hierarchical tree-token accounting — each subagent’s usage rolled up to the tree root and bounded by a tree-wide ceiling — lives separately in tree.rs (charge_tokens) and is driven by the reactor (KillReason::TreeBudget); this type is the per-run primitive that records usage and answers “is a bound hit?”.

Structs§

Budget