Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AI Agents & Agentic AI in Python: 5 Projects, LangGraph, MCP
New
Rating: 5.0 out of 5(1 rating)
5 students

AI Agents & Agentic AI in Python: 5 Projects, LangGraph, MCP

Build 5 AI agents with the OpenAI Agents SDK, LangGraph and MCP: support, triage, data analyst, research team, invoices
Created byAdi Tejus
Last updated 11/2026
English

What you'll learn

  • Build a tool-using customer support agent in Python with the OpenAI Agents SDK, with traces kept on your own computer
  • Build a support ticket triage workflow in LangGraph with routing in code, checked replies and human approval
  • Build a data analyst agent that lets code do the arithmetic, stays inside its folder and asks before it writes
  • Build a multi-agent research and writing team with a supervisor, and know when a plain workflow is better
  • Build an MCP server that Claude Code uses on business data, with validation, confirmation and an audit trail
  • Test agents with fixed questions, real tool-call checks, evals and repeated runs instead of a single demo
  • Return validated, typed answers with automatic retries before agent output reaches another system
  • Choose an agent framework with a one-page decision backed by your own numbers
  • Harden an agent for production: number guardrails, retries and time limits, request logs, cost per answer and evals on new cases
  • Give an agent least privilege: read-only tools by default, a confirm step for writes, and an audit log you can trust

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

7 sections • 7 lectures • 2h 16m total length
  • Build 5 real-world AI agents in Python: the finished projects3:50

    Overview. Build 5 real-world AI agents in Python: the finished projects. The finished project running first, then the plan for the course, what you need, and the course code (attached here as a download).

Requirements

  • Python basics: functions, lists, dictionaries, pip and virtual environments
  • A Windows, Mac or Linux computer with about 8 GB of RAM; no GPU needed
  • Ollama (no-cost) for four projects; a Claude account for Claude Code in project 5

Description

This course contains the use of artificial intelligence.

Five AI agents that do real work, built in Python and tested on real runs. Every project opens on the finished agent, working, and then builds it step by step, with every output on screen taken from a recorded run.

Project 1, a customer support agent in the OpenAI Agents SDK: real tools over an order database, local traces that never leave your computer, typed answers with PydanticAI, and a 20-question test that checks which tools really ran. Project 2, a support ticket triage desk in LangGraph: plain code decides the route, the model labels and drafts, rules check every reply, and a human approves before any email goes out. Project 3, a data analyst agent for an expense sheet: why the first version dropped a row from the travel total, the narrow tool that fixed it, a locked folder, approvals, and a 10-task eval. Project 4, a multi-agent research and writing team: a supervisor, a research agent and a writer, then a newsroom that cites its sources, refuses to invent, and waits for an editor. Project 5, an MCP server for invoices that Claude Code uses: overdue reports, sales tax by rate, and a payment that is never recorded without your confirmation.

Every project then gets a production-hardening segment with new recorded runs: guardrails that block invented numbers, retries and time limits, a log line per request, the cost of one answer in calls, tokens and seconds, and an eval on new cases that shows when a fix for one question breaks another. Project 5 also runs the MCP server from a local model, with read-only tools and an audit log.

The last lecture answers the question every team asks: which agent framework? The same support agent in five frameworks, 20 questions, three runs each, and a three-sentence prompt change that moved scores more than switching frameworks.

Four projects run on small local models through Ollama on an ordinary laptop (qwen2.5 0.5B and 3B), so you see real mistakes and learn to catch them in code. Project 5 uses Claude Code with a Claude account. Each project ends with a practical (starter and solution), a quiz and an assignment; the course ends with a capstone on a task from your own work. Narration is AI-voiced; the code, runs and results are real.

The course is 2 h 37 min of video in 7 sections. Section 1 is the overview and setup; the other sections are hands-on, and every program is run for real on screen. Each hands-on section comes with a one-page cheat sheet (PDF), a short quiz, a practical with starter and solution files and an assignment with a model answer; 6 coding exercises let you write the code yourself.

Who this course is for:

  • Python developers who want to build AI agents that do real work, not just chat
  • AI and automation engineers who need agents with approvals, evals and audit trails
  • Students and job-seekers who want five working agent projects to show in interviews