step budget
A hard limit on how many turns or how much money an agent loop may use before it stops and reports why.
In more detail
Without one, a confused agent can loop forever. The OpenAI Agents SDK raises MaxTurnsExceeded, Google ADK has max_llm_calls and LangGraph a recursion limit; a cost budget catches loops whose turns are few but expensive.
Related terms
- agent loop — The cycle at the heart of an agent: the model reasons and requests tools, your code runs them, and the results go back until the model finishes or a limit stops it.
- unbounded consumption — An application letting users or agents consume model calls, tokens or compute without limits, leading to runaway cost, outages or model extraction.
Taught in
- The Agent Loop — AI Engineering: LLM Apps, RAG & Agents
- Planning, Memory And Many Agents — AI Engineering: LLM Apps, RAG & Agents
- Agent SDKs And Human Approval — AI Engineering: LLM Apps, RAG & Agents
References
- OpenAI Agents SDK: Running agents (the agent loop, max_turns)
- Google ADK: Runtime config (max_llm_calls)
- LangGraph: Graph API (recursion limit)