Architecture · Execution · Evaluation

The engineering behind reliable agents.

Define what an agent can do. Understand how it makes decisions. Build the controls that keep its execution accountable.

Chapter 01

Start with the architecture

Define the agent, its responsibilities and the runtime around it.

Chapter 02

Make the right handoff

Build teams, prepare routing data and decide when to abstain.

Chapter 03

Understand what went wrong

Trace execution, recover safely and recognise stalled progress.

Chapter 04

Set the boundaries for release

Control abuse, choose models and require evidence before promotion.

From reading to practice

Make the example your own.

Each Python exercise includes an expected result and a change to try next. Run it locally, inspect the outcome, and test the assumptions.

Python 3.11 or newer · Standard library · No API key required

Start with the agent contractpython 05-agent-definition-contract.pyDownload the exercise

Exercises use synthetic data to demonstrate specific design principles. They are separate from the interactive application and do not deploy agents.