A chatbot answers the last message. An agent pursues a goal across steps — observing, reasoning, acting, and checking whether it's done. That cycle is the unit of agent behavior, and everything else this semester elaborates it.
Each turn stands alone. The user owns the goal, the plan, and the follow-through.
Three defining pieces: a goal, persistent state, and a termination condition (Wang et al., 2023 survey framing).
This is the loop diagram from Week 2 — same shape, new episode. Press Step and watch the agent answer the Atlanta-vs-statue question with two tools: Search and Calculator.
The amber node is the stop check: after every state update, the loop asks whether the goal is satisfied — or whether it has run out of budget.
send_payment(). Looking at the five parts of a loop turn — where exactly would you put the human gate, and why not anywhere else?exec_policy sits in the Week 2 material.