Capstone Project
This is the final step of the course. Build something real with what you learned, submit it, and get it graded.
What to build
Build a small AI agent in plain Python for a domain you choose (a study helper, a recipe planner, a support desk for a made-up shop, or the trip helper from the course with new tools). Use the official openai SDK pointed at an OpenAI compatible endpoint, with the base URL, API key and model read from environment variables so it runs on a local Ollama model or a hosted API without code changes. No agent frameworks: the agent loop, tool dispatch and error handling must be your own code.
The agent needs at least three tools described with JSON Schema, with errors returned as tool results instead of exceptions, a step limit and a token or cost budget, and at least one of: long-term memory with embeddings, retrieval as a tool, an MCP server connection, or a human approval step for a risky action. Include a small eval suite with at least five test cases that check tool calls as well as answer text and run each case more than once, plus a trace log written for every run. Use fictional or public data only.
What to submit
A public GitHub repository link containing main.py (entry point), agent.py (the agent loop), your tools and eval files, requirements.txt or pyproject.toml, and a README.md that explains how to run it with Ollama and with a hosted API, lists the tools, shows one example run, and reports your eval results with the model you tested on. Include honest notes on where the agent fails.
Grading looks at the code and README, not at how smart the model is. A small local model that fails some eval cases is fine if the failures are reported honestly and the code handles them safely. Projects that rely on an agent framework for the core loop, hard code API keys, or report results that were not measured will not pass.
How it is graded
An AI grader reads your repo and your writeup and scores it from 0 to 100 on five criteria. Each criterion is worth 20 points. The pass mark is 70 out of 100.
- Agent loop and tools. A hand written loop that sends tools, runs requested calls, returns results with matching tool_call_id, and has at least three clearly named and described tools.
- Robust tool handling. Unknown tools, bad JSON arguments and tool failures come back to the model as error results; the loop never crashes on a bad call.
- Control and safety. A step limit plus a token or cost budget, and either an allowlist with human approval for risky actions or clear reasoning why the agent has none.
- Memory, retrieval or MCP. At least one of long-term memory with embeddings, retrieval as a tool with grounding checks, or a working MCP client connection.
- Evals, tracing and README. At least five eval cases with tool-call checks and repeated runs, a per-run trace log with token counts, and a README with setup steps, the tested model and honest results.
When do you get the certificate?
Your Certificate of Completion is issued only after you pass the final exam AND pass the capstone. Passing one of them is not enough. Finish both, and the certificate is yours.
Go to the final examLoading...