Skip to content

Agent Loop

The basic working cycle of an agent: the model reasons, calls a tool, receives the result and decides what to do next. The cycle repeats until the task is done.

Stages

1. Reasoning — the model decides on the next step.
2. Action — a tool call or a reply to the user.
3. Observation — the result of the action is returned to the context.
4. Repeat until there is a final answer.

Why It Matters

It is exactly this cycle that distinguishes an agent from an ordinary chat: the model does not answer once but moves towards the goal iteratively, adjusting its actions based on the results.

See Also

← All Terms