Domain 1 · Agentic Architecture & Orchestration
The Agentic Loop
How a model that can only write text gets real work done — and the one field your code must read to keep it going.
In this chapter
- Why one reply is not enough
- What a reply is made of
- stop_reason, the steering signal
- The whole loop in twenty lines
- The bug the exam loves
Turn pages with the arrow keys, the buttons below, or a swipe.
Figure 1.1–1