- Glossary
- Agent loop
Glossary term
Agent loop
The cycle of calling the model, running any tools it requests, returning the results and repeating until it stops.
Also called agentic loop.
Open lesson 42.1
The agent loop · Chapter 42, and 2 more lessons below
In plain words
Needs limits: maximum turns, a budget and rules for repeated failures.
Taught in
Also in these lessons
AttentionComputer useHookPostToolUse hookPreToolUse hookRunaway loop