AI engineering glossary · Agents tools MCP
What is stop condition?
Stop condition: The rule that ends an agent loop, such as the model giving a final answer, a goal check passing, a step limit being hit, or a human cancelling. Clear stop conditions prevent both premature endings and runaway runs.
Stop condition: an example
The loop stops when tests pass, or after 20 steps, whichever comes first.
Related terms
More Agents tools MCP terms
- Streamable HTTP
- Subagent
- Supervisor agent
- Task success rate
- Thought-action-observation
- Tool argument validation
- Tool error handling
- Tool overload
Where you learn it
Stop condition is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.