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

Quiz 3.1The agent loopStart Practice or a ranked attempt — you choose after clicking.
  1. The ReAct loop
  2. Agent loop steps at the API level
  3. Message roles in the API
  4. How the context is assembled on every step
  5. The dangerous spot in an agent loop
  6. The agent's state line
  • 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