Learn How to Build AI Agents
Learn the building blocks of AI agents in plain Python: prompt chaining, structured output, routing, parallel work, orchestrator-workers, evaluator loops, tools and the agent loop. Every example runs offline against a fake model function, so no API key is needed, and the running scenario is a volunteer bookshop's shared inbox.
- Intermediate level
- 5 modules
- 13 lessons
- 63 quiz questions
Syllabus
01Workflows and AgentsWhat makes a system agentic, who decides the next step (your code or the model), why to start simple, and how to practise every pattern offline with a fake model function.2 lessons
02Chains and Structured OutputBreak a task into steps whose output feeds the next prompt, make the model's answers machine-readable with JSON, and validate and retry when they are not.3 lessons
03Routing and Parallel WorkSend each input to the specialised handler that suits it, run independent checks or repeated attempts side by side, and let an orchestrator plan subtasks that you could not list in advance.3 lessons
04Evaluator Loops and LimitsLet one step write and another judge, loop until the draft passes, and put hard limits on every loop so a stubborn task cannot run up cost or fail silently.2 lessons
05Tools and AgentsDescribe tools to a model with a schema, run the calls it asks for, feed the results back in a loop with a turn cap, and learn how to choose between all the patterns and how to start building for real.3 lessons