Try the agent loop yourself
The example model is an illustration. With the tool, it asks for a file in the first two rounds and then replies with text. It is not a real agent.
- 01
The harness sends the transcript
The transcript is all the text so far.
- 02
The model replies
It returns plain text, or a request to run a tool, such as reading a file.
- 03
The harness runs the tool
It works on your files. The model only sees the result.
- 04
The harness appends the result
The result becomes part of the transcript.
- 05
A stop check runs
The loop ends on plain text with no tool request, on a limit, or when you stop it.
- 06
Otherwise the next round starts
The harness sends the whole transcript again.
Transcript
Press "Next step" to start the first round.