The agent loop
A section of the "Agents: tools and planning" topic. The questions check an understanding of practice, not memory of specific library APIs. After each answer comes a review: why the correct option is right, what is wrong with each incorrect one and which chapter to read.
Quiz difficulty Formats: one correct option, order of steps, several correct options, the faulty line
01
What we check
- The ReAct loop
- Agent loop steps at the API level
- Message roles in the API
- How the context is assembled on every step
- The dangerous spot in an agent loop
- The agent's state line
02
Where to read
- Li, AI Agents in Depthsec. 1.1.5 · sec. 2.2.1 · sec. 2.2.3 · sec. 2.2.4 · sec. 2.2.5 · sec. 2.6.1–2.6.2 · sec. 2.6.2