Figure A.1 A minimal agent, in one picture. User input is appended to a growing
message history; the model reads the whole history and either answers or asks for
a tool; if it asks, the tool is run and its result is appended back, and control
returns to the model. That return arrow—the loop, in accent—is the entire
difference between a single model call and an agent.