A per-response output limit is not an agent budget
The practical question is not “how many tokens may this answer contain?” It is “how much work may this autonomous run consume before it must stop?” Those are different controls.
Google’s July 28, 2026 description of Managed Agents in the Gemini Interactions API separates the two ideas. Its agent_config.max_total_tokens setting caps total consumption—input, output, and thinking—and an interaction that reaches the limit returns incomplete. The preserved environment can then be continued with a fresh budget using the previous interaction ID.
That makes a response-length cap a poor substitute for an agent budget. A response cap can constrain one visible answer while leaving the agent’s accumulated context, reasoning, and intermediate work unbounded. Conversely, a total budget can stop a multi-step run even when its final response would have fit comfortably within a per-response limit.
Use the control that matches the failure you are preventing:
- Set a response limit when the concern is payload size, downstream parsing, or a user-facing length contract.
- Set a total-run budget when the concern is runaway tool loops, accumulated context, or predictable spend and latency.
- If both risks matter, measure them independently rather than treating one limit as evidence that the other is enforced.
Before choosing a number, instrument representative tasks: count input, output, and reasoning consumption across successful and interrupted runs, then record completion quality and continuation rate. The source establishes the semantics of the Managed Agents control, but it does not provide a universal token number, price, or workload threshold. Those remain deployment-specific assumptions to validate.
The decision is therefore straightforward: preserve a per-response cap for interface safety, but add a total agent budget for autonomous-work safety. One bounds an answer; the other bounds the run.