Loop visualiser
0 / 12

No run yet. Write your code, then click Run.

The cycle

Loop is idle
  1. 1. Call the model
    Send messages. Get a reply.
  2. 2. Read a tool request
    The reply may ask for a function by name.
  3. 3. Run the tool
    Your code runs it. The model never does.
  4. 4. Feed the result back
    Append a tool message. Context grows.
  5. 5. Repeat or stop
    Call again, or exit when there is no tool call.

Run the code to see the loop.

0 events revealed