Azure AI Agent
Map
/
Level 1 · The loop by hand
/
Anatomy of the loop
v1 · No subscription
Lesson
Loop
Loop visualiser
Start
Reset
0 / 12
No run yet. Write your code, then click Run.
The cycle
Loop is
idle
1. Call the model
Send messages. Get a reply.
2. Read a tool request
The reply may ask for a function by name.
3. Run the tool
Your code runs it. The model never does.
4. Feed the result back
Append a tool message. Context grows.
5. Repeat or stop
Call again, or exit when there is no tool call.
Reveal
Live
Slow
Step
All at once
Run the code to see the loop.
0 events revealed