Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Anthropic · CCAR-F

The agentic loop

CCAR-F · Lesson 1 of 18 · 3:50

YouTube loads only after you press play. Watch on YouTube ↗

In this lesson

Prepare for the Claude Certified Architect – Foundations exam, on the exam guide version 1.0, effective July 2026. In this lesson: how the agentic loop works, the stop_reason values tool_use and end_turn, appending tool results to the history, model-driven decisions versus decision trees, and the anti-patterns that end a loop at the wrong time. Includes three original practice questions.

Preview the topics
  • Kestrel’s agent receives a response whose stop_reason is tool_use, with a call to lookup_order. What should the loop do next?
  • Kestrel’s loop stops as soon as a reply contains any text, and the logs show refunds that were never processed. What is the root cause?
  • A developer wants the loop to stop after ten rounds, to be safe. How should this cap fit into the design?