File size: 681 Bytes
a81f515
 
1f3a178
a81f515
1f3a178
a81f515
 
 
 
1f3a178
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
title: Agent Loop
emoji: πŸ”
colorFrom: yellow
colorTo: gray
sdk: static
pinned: false
---

# The Agent Loop

Animated explainer for [Unit 6 of the Context Course](https://huggingface.co/learn/context-course): the agent loop. Renders the four-step cycle β€” `call llm β†’ parse β†’ execute β†’ append` β€” with a live terminal log that fills as the loop iterates and a `STOP Β· end_turn` branch that fires on the final pass.

Source composition (HyperFrames) lives at [github.com/huggingface/context-course/tree/main/course-hyperframes/agent-loop](https://github.com/huggingface/context-course/tree/main/course-hyperframes/agent-loop).

Embedded in the course via `<iframe>`.