CourseLarge Language Models: The Complete Course · Module 8: Agents · part 56 of 103
Part 56 · Module 8: Agents

Lesson 2: Guards that stop, retry, pause and record an agent

22 min read·13 Oct 2026
Module 8 · Lesson 2 · About 50 minutes · Needs: Module 8 Lesson 1 (the agent loop); Module 6 Lesson 3 (the guard chain in supportdesk/guards.py)

The situation

It is Monday 20 July 2026, week 8. The refund agent from Lesson 1 runs on the money tickets, and everyone has a question before it touches T-1001, Ana Duarte's duplicate charge of 288 USD.

Joel asks what stops it looping and spending past his one-cent cap. Tomasz says the billing system sometimes times out. Maya wants nothing paid until she says so. Anika will replay T-1034 this afternoon and wants every step on record. Module 6 checks each tool call; this lesson guards the whole run.

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.