Know your Python building blocks
Start with functions, lists, dictionaries, and loops. The labs introduce model prompts, tool requests, and checks as you use them.
Rules → Prompts → Agentic patterns
Learn agentic AI while reviewing and applying software architecture concepts, including microservices and DDD. Use small ShopEasy examples to check service readiness, find bounded contexts, protect Order invariants, choose data and resilience patterns, and review event contracts. Build from one LLM call to tools, agent loops, a debating council, memory, MCP, A2A, and LangGraph. Every Colab lab gives you the context and questions you need to work through an example.
Start with basic Python and your first model call.
Labs 00–08 begin with a large language model (LLM) answering one question. Then you link model calls, let a model ask Python to run tools, and build a group of reviewers whose decisions you can inspect.
The curriculum
Nine core labs, three per 90-minute lecture, introduce the main agentic mechanisms through microservices revision. Nine self-study labs add the evaluation experiment, routing, the protocols, skills, and framework you may use to build it, plus framing, a learning experiment, and a decision model. Labs start with small examples. Labs 06–08 use park-or-museum and umbrella questions throughout; other labs connect the ideas to software architecture. Counts exclude setup and list warm-ups and optional examples separately.
All 18 labs
For your project
The labs name their patterns as the Architectural Patterns for Agentic AI field guide does, in its three categories. Use this map to find the lab to revisit when your council needs a pattern.
Before your first call
Use a CPU runtime. Run one setup cell, then the steps in order. First-time package installation takes extra time.
Start with functions, lists, dictionaries, and loops. The labs introduce model prompts, tool requests, and checks as you use them.
Open Lab 00 with its Colab button and save a working copy in your Drive. Choose a CPU runtime. Run setup, then the warm-up and numbered steps one cell at a time. You can return to optional examples later.
A provider is the service that runs the model. Add its API key under the matching name in Colab Secrets and grant the notebook access. Select that provider in the setup cell. Each model request uses your provider’s quota.
Compare the output with the example’s expected result. If a check fails, read its message and fix the input or rerun the step it names. Then change one input and see what changes.
One interface, three built-in providers. Every provider speaks the OpenAI-compatible Chat Completions API, and the helper also supports configurable compatible gateways. Set PROVIDER for a built-in provider, or follow the API setup guide for a custom gateway, and save the key in Colab Secrets. Check model access, quotas, and pricing before class.
| PROVIDER | Model family | Colab secret |
|---|---|---|
"freeinference" | Qwen | FREEINFERENCE_API_KEY |
"deepseek" default | DeepSeek | DEEPSEEK_API_KEY |
"gemini" | Gemini | GEMINI_API_KEY |
Most live model labs need one provider. Lab 06 needs all three model families; MCP, the local A2A adapter, and the trust-weight demo need no model. Lab 17 uses a separate TypeSafe key for scoring. The setup cell installs the course helpers from a pinned GitHub revision, plus the SDK a lab needs.
Model API setup ↗Instructor guide ↗Local setup and repository instructions ↗
What you will learn
Each area answers a different question. Together, they help you decide what belongs in an agent system—and what a simple model call can already do.
Ask a model a question, compare several prompts, then give the model relevant notes to use when answering. This last technique is called retrieval-augmented generation (RAG).
Begin with the model ↗Pass one reply to the next prompt, let a model request Python functions, and follow a loop that uses each result to choose what to do next. Then compare several reviewers, follow a decision in the logs, and use saved feedback on a later case.
Start with a prompt chain ↗Read and update an Order through its aggregate root, expose owner APIs over MCP, and translate a provider model through an A2A payment adapter.
Connect capabilities ↗Load a Saga-review skill and validate compensations, then use LangGraph to check an additive OrderPlaced contract.
Make the pieces reusable ↗Two learning goals across the course: build an agentic mechanism and apply microservices or DDD concepts in a self-contained scenario. Later examples test domain boundaries, data ownership, safe effects, and explicit trade-offs.
Read a little. Build a lot.
Start with a lab, then explore these learning resources and technical references.
A browser-based practice app with examples progressing from a single prompt to tool use, reflection, and multi-agent workflows.
Continue beyond Lab 14 with Python examples covering chatbots, ReAct agents, supervisor patterns, and research workflows.
The message-response format used by the compatible API adapter. Pair it with the original RAG paper and FreeInference documentation.
Workflows, agents, chaining, routing, parallelization, and evaluator–optimizer patterns. For action/observation loops, see ReAct; for councils, multiagent debate.
The standard for connecting AI applications to tools, data, and other context. Lab 04 builds tools by hand; self-study Lab 11 uses the MCP SDK.
Capability discovery and communication between agents. Self-study Lab 13 discovers a local payment-adapter agent and sends a synthetic provider payload across a real A2A interface.
An open format for packaging procedural instructions and supporting resources. Read the format specification before extending your skill.
State, nodes, and edges for orchestration. Self-study Lab 14 starts with just two nodes; use the guide to explore larger workflows.
Begin with the simplest working system