Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Stop condition

Also: stop conditions

In plain words

The rule that tells an agent when to stop.

The fuller definition

A stop condition is an explicit event or test that ends a run or sends it for review.

The agent loop
  1. ObserveRead the task, the current state, and the last result.
  2. DecidePropose the next action: a search, a file read, a calculation.
  3. ActThe harness runs the action, if permitted.
  4. CheckStop condition met? If not, loop again.

The model proposes; the surrounding software executes and records. Where the loop may act, and when it must stop and ask, are decisions made outside the model.

A concrete example

Stop after all five documents have a final status, after a fixed budget, or when required access is missing.

The distinction that matters

A vague instruction to keep improving can produce unbounded work without a checkable finish line.

Related terms

Where it is taught

Prompts, skills, workflows, and agents

Source and further reading

Anthropic · Building effective agents

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC