Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AI Agents in Python: Pydantic AI, LangChain, OpenAI, Claude
Role Play
New
8 students

AI Agents in Python: Pydantic AI, LangChain, OpenAI, Claude

Learn to build real AI agents in Python with tools, memory, guardrails and tracing, step by step with simple examples
Last updated 11/2026
English
English

What you'll learn

  • Understand how a GenAI app is built and why Python is the top choice for AI work
  • Build AI agents in Python with Pydantic AI using tools, memory and clean structured output
  • Keep your AI bill under control by setting token limits, request limits and tool call limits
  • Build Deep Agents with LangChain and add a human approval step before any risky action
  • Use the OpenAI Agents SDK to add tools, guardrails and handoffs between agents
  • Make coding agents with the Claude Agent SDK and give them your own Python tools
  • Track and debug every agent run using Logfire, LangSmith and OpenAI tracing

Course content

5 sections • 38 lectures • 2h 49m total length
  • Welcome to the Course5:31

    welcome to AI Agentic course with Python

  • The GenAI Application Stack7:18
  • Why Python Dominates GenAI Development4:35

Requirements

  • Basic Python is enough, like functions, classes and pip install
  • A laptop with Python and VS Code (or any code editor) installed
  • OpenAI and Anthropic API keys, with a small amount of credit in each account
  • No AI or machine learning background needed. We start from the basics

Description

In this course, you will learn how to build AI agents in Python using the four most popular agent frameworks: Pydantic AI, LangChain Deep Agents, the OpenAI Agents SDK and the Claude Agent SDK.

We start from the basics. First you will understand how a GenAI app is built and why Python is the first choice for AI work. Then we go framework by framework, write the code together and see how each one solves the same problems in its own way.

What you will learn

  • Pydantic AI: agents, instructions, tools, message history, structured output, dependencies, multimodal input and hooks

  • How to keep your AI bill under control with token limits, request limits and tool call limits

  • LangChain Deep Agents: built-in file tools, custom tools, backends and human approval before risky actions

  • OpenAI Agents SDK: tools, input and output guardrails, handoffs between agents and streaming

  • Claude Agent SDK: setting up coding agents and giving them your own Python tools

  • Tracing and debugging with Logfire, LangSmith and OpenAI tracing

Why this course

Most courses teach only one framework. Here you will try all four side by side, so you understand what an agent really needs and can pick the right tool for your next project with confidence. Every section ends with a quiz, so you can check your understanding as you go.

Who this course is for

This course is for Python developers, backend developers, students and freshers who want to get into AI engineering. Basic Python is enough. No AI or machine learning background is needed.

Who this course is for:

  • Python developers who want to start building real AI agents
  • Backend developers who want to add AI features to their apps
  • Students and freshers who want to get into AI engineering roles
  • Developers confused between Pydantic AI, LangChain, OpenAI and Claude SDKs who want to try all of them in one place