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.

Level: beginnerTopic: Agents tools MCP

Stop condition: an example

The loop stops when tests pass, or after 20 steps, whichever comes first.

Related terms

More Agents tools MCP terms

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.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.