Building AI Agents with MCP, PydanticAI and OpenAI
Continue with the workshop writeup
Open the canonical pages, recording, materials, and code repo.
We build a course FAQ assistant from the bottom up. First we expose a
plain Python search(query) function to the OpenAI Responses API. Then
we turn the same idea into a reusable agent loop, compare toyaikit,
OpenAI Agents SDK, and PydanticAI, and finally move the FAQ tools behind
an MCP server that can be used from a notebook, PydanticAI, Cursor, and
VS Code.
Links
The main resources:
- AI Bootcamp: From RAG to Agents
- Prerequisite workshop: Building a Coding Agent
- Data Engineering Zoomcamp FAQ source document
- Parsed FAQ JSON
- FAQ parsing notebook
The system you will build
The final setup looks like this:
The FAQ data comes from the Data Engineering Zoomcamp FAQ. The first
half of the workshop keeps the tools inside the notebook so you can see
the agent loop directly. The second half moves the same tools into
mcp_faq/, which makes them reusable by any MCP client.
Related content
Skills.md from Scratch: Build a Skill-Driven Coding Agent
We start from the coding agent from the prerequisite workshop and turn it into a general-purpose coding agent with two reusable behavior layers: skills and slash commands. Skills …
January 16, 2026
Building Safe AI Agents with Guardrails
We start with a DataTalks.Club Data Engineering Zoomcamp FAQ assistant, then add checks that keep the agent on topic, block unsafe responses, and show how to cancel wasted work wh…
January 6, 2026
AI Hero: 7-Day AI Agents Crash-Course
Build a complete AI agent from data ingestion to deployment. Learn RAG, search, function calling, evaluation, and web deployment — all on YOUR GitHub project.