← Back to LLM Fundamentals
Agents
The agent loop explained: think, act, observe, repeat
The agent loop is a cycle: the model thinks about what to do next, takes one action with a tool, reads the result, and repeats. Each observation changes the next thought.
Check what you learned
Answer all 3 questions. You need at least 2 right to pass.
1. What are the four steps of the agent loop?
2. Why could the agent not plan all five steps of the test fix in advance?
3. What are the three ways loops fail?