Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
OpenAI Agents SDK: Build Multi-Agent AI Systems in Python
New
3 students

OpenAI Agents SDK: Build Multi-Agent AI Systems in Python

Build LLM agent tools, multi-agent orchestration, guardrails, streaming, and tracing, then ship a real capstone project
Last updated 8/2026
English

What you'll learn

  • Build and configure production-ready agents using the OpenAI Agents SDK in Python
  • Equip agents with function tools, hosted tools, and structured outputs to complete real tasks
  • Stream agent responses in real time and manage runs with RunConfig and context objects
  • Orchestrate multi-agent systems using handoffs, triage routing, and parallel execution
  • Protect agent pipelines with input and output guardrails that block invalid requests
  • Debug and monitor agents using built-in tracing, the OpenAI dashboard, and lifecycle hooks
  • Track token usage and cost across multi-agent runs to control spend in production
  • Build a complete multi-agent research assistant combining tools, handoffs, guardrails, and tracing

Course content

6 sections47 lectures9h 52m total length
  • What is the OpenAI Agents SDK? Context and motivation7:27

    An introduction to the OpenAI Agents SDK: what an agent actually is, how it differs from a single LLM call, and why this course focuses on the Python SDK specifically.

  • From Swarm to Agents SDK: a brief history6:40

    The story of how OpenAI's experimental Swarm project evolved into the production-ready Agents SDK, and why that history explains some of the SDK's design choices.

  • The four core primitives: Agents, Tools, Handoffs, Guardrails7:44

    A conceptual walkthrough of the four building blocks every system in this course is made from, and how they fit together.

  • How the SDK relates to the Responses API under the hood5:55

    An explanation of what the SDK is actually doing behind the scenes, how it relates to OpenAI's Responses API, and when you might use the Responses API directly instead.

  • Environment setup: Python, virtualenv, API key, pip install openai-agents8:35

    Step-by-step setup of your Google Colab environment, including installing the SDK and securely configuring your OpenAI API key using Colab Secrets.

  • Your first agent: hello world in 10 lines7:27

    You will write, run, and get a response from your very first agent in under ten lines of Python code.

  • Reading a RunResult: final_output, last_agent, usage8:00

    A close look at everything a single agent run actually returns, including the final output, which agent produced it, and how many tokens it used.

  • How to access Course Resources and Notebooks8:26

Requirements

  • Basic Python. Comfortable with variables, functions, loops, and classes. No async/await experience required; it's introduced gradually as the course progresses.
  • A free OpenAI platform account with API access. Usage is pay-as-you-go and billed separately from Udemy; the full course typically costs only a few dollars in API calls.
  • A free Google account for Google Colab. Every notebook runs in the browser; no local Python install, IDE, or virtual environment needed.
  • Any computer with a modern browser and internet connection. No powerful hardware or GPU required.
  • No prior experience with AI agents, LLM frameworks, or the OpenAI API required. This course starts from your very first agent.

Description

Build Production-Ready AI Agents Using the OpenAI Agents SDK in Python

Most tutorials stop at a single agent calling a single tool. This course goes the other ninety percent of the way: multi-agent orchestration, guardrails, structured outputs, real-time streaming, and full observability, all in Python, all built on OpenAI's own official SDK.

You will start with your first agent and end by building a complete multi-agent research assistant, live, line by line, in the course capstone. Along the way you will learn how to equip agents with function tools and hosted tools, stream responses in real time, route conversations between specialist agents with handoffs and triage logic, protect your pipelines with input and output guardrails, and debug and monitor everything you build using the SDK's built-in tracing and the OpenAI dashboard.

Every lecture ships with a Google Colab notebook you run yourself. There is no local setup, no virtual environment, and no TypeScript; this course is Python only, from the SDK's own official Python interface.

Here is what you will be able to do by the end of this course:

  • Build and configure agents using the OpenAI Agents SDK, from your first agent through advanced configuration and structured outputs

  • Equip agents with function tools, hosted tools, and multi-agent handoffs to complete real, multi-step tasks

  • Stream agent responses in real time and manage runs with full control over configuration and context

  • Orchestrate multi-agent systems using handoffs, triage routing, and parallel execution with asyncio

  • Protect agent pipelines with input and output guardrails that block invalid requests before they cost you time or money

  • Debug and monitor agents using the SDK's built-in tracing, the OpenAI dashboard, and lifecycle hooks

  • Track token usage and cost across multi-agent runs, a skill most courses skip entirely

  • Build a complete multi-agent research assistant from scratch, combining every concept from the course into one capstone project

If you are a Python developer ready to move past single API calls and start building agents that actually coordinate, this course will take you there.

Who this course is for:

  • Python developers who want to move beyond single LLM API calls and build autonomous, tool-using agents
  • Backend or software engineers exploring agentic AI who want a structured, hands-on path instead of scattered tutorials
  • Developers already using the OpenAI API directly who want a framework that manages the agent loop, tool calls, and handoffs for them
  • AI or ML engineers moving from model training into agent orchestration, guardrails, and production observability
  • Anyone who has tried LangChain, CrewAI, or similar frameworks and wants to learn OpenAI's own first-party Python SDK instead