Skip to main content

EXCHANGE_BUDGET_BYTES

Constant EXCHANGE_BUDGET_BYTES 

Source
pub const EXCHANGE_BUDGET_BYTES: u64 = _ /* 32_768u64 */;
Expand description

What one turn’s exchange — its assistant reply and its wave’s results — may occupy in the window, in bytes. Shared evenly across the exchange’s texts when the whole does not fit; which end of a text survives is runtime::compaction’s decision, and this file only says how much there is.

Derived, not chosen: one reply at the city’s default output ceiling, converted at the rate every two-unit budget crosses at. A reply is the one part of an exchange no landing-time mechanism has bounded yet — a tool result is capped where it lands and its original is pinned first — so the exchange’s budget is priced at exactly the largest thing the model is allowed to say. The checked_mul is const-evaluated over two literals and cannot fail; the match is the const-safe spelling of that product.