01 β Orientation
Course description & rationale
An AI agent is a program that uses a language model to think, take actions with tools, look at the result, and try again β until the job is done. This course teaches you how to build agents like this, and how to make them work well.
You already know the basics: machine learning, how LLMs work, prompting, and embeddings. So we will not repeat them. From day one, we focus on what is new and hard β giving a model a loop, tools, and memory, and keeping it reliable, safe, and low-cost.
Over 16 weeks, you start by building one simple agent by hand. Then you build teams of agents that work together and pause for human approval. Finally, you learn to test, secure, and launch agents for real use. You will write a lot of Python. By the end, you will have many small projects and one finished agent that anyone can use online.
Why this course, why now
Most agent tutorials are one of two kinds: a flashy demo that works only once, or a tool guide that teaches the buttons, not the ideas. Both go out of date fast, because tools change every few months. This course does the opposite. It teaches the ideas that last β the loop, tools, memory, teamwork, testing, and safety. Learn these well, and you can pick up any new tool in an afternoon.
That is why you build things by hand first. You write a ReAct loop yourself in Week 3, before you touch a framework like LangGraph in Week 7. And we treat testing, reliability, and security as real work β because these are what turn a demo into a product.
Assumptions I made (adjust freely): cohort-based, synchronous delivery (in-person or live online), sessions recorded Β· provider-agnostic examples (Claude by default; any API works) Β· LangGraph as the framework spine, with CrewAI & AutoGen for comparison Β· class of 12β30, solo labs and team capstones Β· roughly $20β40 of API credit per learner across the term.
05 β The weekly rhythm
The 3-hour session structure
Every week has the same shape, so you always know what comes next. Each class is 180 minutes long. About 40 minutes is free time β recap, a break, and questions β built into every class.
| Segment | Clock | Length | Purpose |
| Recap & warm-up buffer | 0:00β0:15 | 15 min | Review last week, connect to today, homework questions. |
| New ideas (part 1) | 0:15β0:55 | 40 min | New ideas with live-coded demos. |
| Lab (part 1) | 0:55β1:35 | 40 min | Hands-on, with the teacher walking around to help. |
| Break buffer | 1:35β1:50 | 15 min | β |
| New ideas (part 2) | 1:50β2:20 | 30 min | A deeper or second topic, with patterns and common mistakes. |
| Lab (part 2) + extra | 2:20β2:50 | 40 min | Finish the lab; extra goals for those who move fast. |
| Wrap-up, questions & homework buffer | 2:50β3:00 | 10 min | Wrap up, give homework, and answer questions. |
Where the free time sits: about 40 minutes each class gives room for the normal bumps of hands-on work. On top of that, Weeks 4, 8, and 12 are lighter "catch-up" weeks with less new material β time to slow down, review, and check your capstone.
07 β The main event
Capstone project
Design, build, test, and launch an agent (or a small team of agents) that does something truly useful. It must use tools, use memory or retrieval, and show that you thought about reliability and safety.
A plain chatbot with no tools does not count. A research helper that searches, reads, checks facts, and writes a summary with sources does count. Some good ideas: a research helper that shows its sources; a Q&A agent for a real code repo; a support agent that passes hard cases to a human; a data agent that reads a database and draws charts; or a team of agents (researcher β writer β editor).
Requirements
- At least 2 well-made tools with typed inputs and error handling.
- Memory and/or retrieval that really changes what the agent does.
- A test set β a small labeled set of cases with scores, not just a demo.
- Reliability features (retries, backups, caching) and a note on cost and speed.
- A safety check: at least one guardrail and a least-privilege permission plan.
- Put online and reachable (an API or simple UI) with basic monitoring and tracing.
- A short design doc and a 6β8 minute demo.
Milestones tied to weeks
| Milestone | Due |
| Plan β problem, users, tools, goals | W8 |
| Design sketch β graph, tools, data flow, handoffs | W10 |
| Middle review β working core + first test cases | W12 |
| Reliability + safety check | W14 |
| Put online + monitor | W15 |
| Final demo + design doc | W16 |
WEEK 01
What makes something an agent? Anatomy & setup
Intermediate
Learning objectives
- Explain how an agent is different from a normal one-shot LLM call, and point out its four parts (model, tools, memory, loop) in an example.
- Set up a working Python + API setup and run a small model call safely (keys kept in
.env).
- Decide when a problem needs an agent and when a simpler tool is better.
Topics β click to open its explainer
Hands-on lab
Set up your tools and run the test file. Then build a "pretend agent": a script where the model says an action in words, and you (the human) do it and paste the result back. This lets you feel how the loop works before you automate it.
Homework
Write one page about an agent product you know. Name its model, tools, memory, and loop, and say if an agent was really needed. Check your key setup with the checker we give you.
Buffer this week
Extra recap and wrap-up time is saved for setup help β the usual Week 1 trouble with keys, versions, and installs.
WEEK 02
Tool / function calling: how agents act
Intermediate
Learning objectives
- Build tool calling: make a tool, show it to the model, read the call, run it, and return the result.
- Explain how a tool call works (request and reply), and fix a broken tool call.
- Build an agent with two tools that picks the right one for each request.
Topics β click to open its explainer
Hands-on lab
Build a small agent with two tools (for example, a calculator and a time or weather tool). Connect the full loop: user β model β tool call β run it β model β answer. Add logging so you can see every tool call.
Homework
Add a third tool and a test that shows the agent picks the right tool for three different questions. Note one time it picked wrong, and why.
Buffer this week
The break and wrap-up are used for a quick group look at everyone's tool logs, to compare how different wording changed which tool was picked.
WEEK 04
Reasoning patterns + mini-project
IntermediateCheckpoint
Learning objectives
- Build reflection (draft, then fix) and self-consistency (try a few times and vote) on top of a basic agent.
- Check whether each method really gives better results, with before-and-after proof.
- Finish a small project agent that mixes the loop with one thinking method.
Topics β click to open its explainer
Plus: when extra reasoning helps vs. just costs more. Lighter new content β a consolidation + build week.
Hands-on lab
Add a reflection step to your Week 3 agent, and measure the change on 3β5 test cases. Start the mini-project.
Mini-project Β· graded 10% Β· due end of Week 5
Build a small agent that uses the loop plus at least one thinking method to solve a task you pick (a math word-problem solver, a fact-checker, or a research helper). Add a short note on whether the thinking method helped, with proof.
Buffer this week
Catch-up week: less new material and saved time to catch up on Weeks 1β3 and start the mini-project with the teacher in the room.
WEEK 05
Designing agent tools: schemas, error handling, real APIs
Upper-int.
Learning objectives
- Design good tool descriptions with clear wording, typed inputs (Pydantic), and input checks.
- Add error handling so a failing tool returns a helpful message the agent can recover from β not a crash.
- Connect a real outside API as a tool, including keys and rate limits.
Topics β click to open its explainer
Hands-on lab
Swap a fake tool for a real API (weather, search, or GitHub). Add Pydantic checks and friendly error messages. Break it on purpose (bad input, network error) and make the agent recover.
Homework
Add a second real-API tool and write 3 tests: normal use, bad input, and API failure. The agent must handle the last two smoothly.
Buffer this week
The break is used for a short lesson on reading API docs and handling keys β the part that trips people up.
WEEK 07
Agent frameworks hands-on (LangGraph; CrewAI & AutoGen)
Upper-int.
Learning objectives
- Rebuild one of your hand-made agents in LangGraph, matching your own ideas to the framework's parts.
- Compare LangGraph, CrewAI, and AutoGen, and say which fits a given job.
- Build a simple graph with nodes, edges, and state.
Topics β click to open its explainer
Hands-on lab
Move your Week 3β5 agent to LangGraph. Then write the same task in a short form in CrewAI or AutoGen, and write a short comparison: what each one made easy or hard.
Homework
Finish the move, and add one branching edge to the LangGraph version. Note two things the framework did for you that you had coded by hand before.
Buffer this week
The recap matches "hand-made idea β framework word" as a class, so frameworks feel like new names for things you know, not magic.
WEEK 08
Agent planning & task decomposition + capstone proposal
Upper-int.Checkpoint
Learning objectives
- Build a planner that breaks a big goal into ordered steps the agent runs.
- Compare plan-first vs. step-by-step (ReAct) planning, and pick the right one.
- Hand in a capstone plan with a clear problem, users, and goals.
Topics β click to open its explainer
Lighter new content β a planning + proposal week.
Hands-on lab
Add a planning step to your LangGraph agent: it writes a plan, runs it step by step, and can re-plan if a step fails. Test it on a task with 4 or more steps.
Capstone proposal Β· graded checkpoint Β· due end of Week 8
Hand in a 1-page plan: the problem, who it is for, the tools you plan to use, your memory/retrieval idea, and clear goals you can measure.
Buffer this week
Catch-up week: saved time for one-to-one feedback on your plan and to catch up on the move to frameworks.
WEEK 10
Orchestration: graphs, supervisor/worker, human-in-the-loop
Advanced
Learning objectives
- Build a supervisor/worker setup where a supervisor sends tasks to workers.
- Build a human-approval step that pauses the graph before an important action.
- Design a graph diagram for your capstone.
Topics β click to open its explainer
Hands-on lab
Build a supervisor agent that sends work to 2 or more workers, and add a human-approval pause: the graph stops for your "OK" before a risky tool, then continues.
Capstone milestone Β· due Week 10
Hand in your design sketch (agents/graph, tools, data flow, handoffs, human-approval steps). Add at least one human-approval pause to a prototype.
Buffer this week
The break is used to work on design diagrams in pairs before they become the capstone milestone.
WEEK 12
Agent evaluation, tracing & debugging + mid-capstone review
AdvancedCheckpoint
Learning objectives
- Build a test setup: a labeled test set plus scores for an agent task.
- Add tracing to an agent and fix a failure by reading its trace.
- Check your own capstone against the goals you set so far.
Topics β click to open its explainer
Lighter new content β consolidation + review.
Hands-on lab
Add tracing to an agent and build a small test set (5β10 labeled cases) that scores it for you. Use a trace to find one real failure and fix it.
Mid-capstone review Β· graded checkpoint Β· due Week 12
Give a 5-minute update: a working core loop, one real tool, and your first test cases. Give and get feedback from classmates.
Buffer this week
Catch-up week: most of class is capstone reviews and getting unstuck. We teach testing now so you can use it on your own project right away.
WEEK 14
Safety & security: prompt injection, guardrails, permissions
Advanced
Learning objectives
- Show a prompt-injection attack on a tool-using agent, and add a defense.
- Build input and output guardrails and a least-privilege permission setup for tools.
- Check an agent for common security risks and write down the risk that is left.
Topics β click to open its explainer
Hands-on lab
Attack your own agent: hide a prompt injection inside a document or tool result that makes it misbehave. Then defend it β add a guardrail and tighten permissions so the attack fails. Show both the attack working and the defense working.
Capstone milestone Β· reliability + safety Β· due Week 14
Finish the safety pass on your capstone: at least one guardrail and a written least-privilege permission plan, along with the Week 13 reliability features.
Buffer this week
The break is used for a live group exercise: everyone tries to attack the teacher's agent β attacks are more fun and memorable as a team.
WEEK 15
Deploying & operating agents (serving, monitoring, LLMOps)
Advanced
Learning objectives
- Put an agent online as a service (a FastAPI endpoint in a container) that others can reach over the web.
- Add production monitoring: logging, tracing, and basic numbers and alerts.
- Explain the LLMOps loop (watch β measure β improve) for a live agent.
Topics β click to open its explainer
Hands-on lab
Wrap your agent in a FastAPI endpoint, put it in a container, and deploy it somewhere people can reach. Add request logging and tracing and a simple numbers view.
Capstone milestone Β· deploy + monitor Β· due Week 15
Put your capstone online with tracing and basic monitoring. It must be reachable and set up for demo day.
Buffer this week
Wrap-up is a deployment help session β because something always breaks in production. We make sure every capstone is reachable before demo day.
WEEK 16
Capstone demos, feedback & what's next
AdvancedWrap
Learning objectives
- Show and explain your capstone: its design, test results, reliability and safety choices, and cost.
- Review classmates' agents with clear, kind feedback.
- Plan how you will keep learning in a fast-changing field.
Topics β click to open its explainer
Plus: reflecting on trade-offs, where the field is heading (patterns over tools), and building a portfolio.
Hands-on β demo day
Each person or team gives a 6β8 minute live demo and answers questions. The rest of the class reviews it against a shared checklist (works Β· tested Β· reliable Β· safe Β· online).
Final deliverable Β· end of Week 16
Capstone hand-in: repo + design doc + live link or UI + test results + demo.
Buffer this week
Wrap-up week: little new material. Time is saved for demos, feedback, a look back at the course, and a "what to learn next" plan so you keep going after the course.