OpenAI Agents SDK
v0.13 — 2026 Edition. A comprehensive guide to building production-ready multi-agent systems with the OpenAI Agents SDK for Python (v0.13 - 2026). Learn core primitives, orchestration patterns, tools, handoffs, guardrails, state management, MCP, and realtime voice integration.
Episodes
Beyond Swarm: The Core Primitives
3m 25sDiscover the foundational concepts of the OpenAI Agents SDK. This episode covers why the SDK exists, how it improves upon Swarm, and the core design principles prioritizing minimal abstractions.
Defining the Agent and the Run Loop
3m 08sLearn how to configure the foundational Agent object. We explore instructions, model settings, and how to force structured data outputs seamlessly.
Equipping Agents with Python Function Tools
3m 16sEmpower your agents to take action by converting standard Python functions into executable tools. Understand automatic schema generation and type inference.
Scaling Tool Surfaces with Hosted Tool Search
3m 22sLearn how to manage massive tool libraries without exhausting your token budget. We cover deferred loading, namespaces, and hosted tool execution.
Decentralized Delegation: The Handoff Pattern
3m 27sMaster the art of multi-agent orchestration using the Handoff pattern. Discover how to create triage agents that seamlessly delegate full control to specialized sub-agents.
Centralized Orchestration: Agents as Tools
3m 31sKeep conversation control in one place using the Agents as Tools pattern. We discuss how a manager agent can synthesize answers from multiple specialist sub-agents.
Shaping Context with Handoff Inputs and Filters
3m 47sOptimize multi-agent token usage by modifying conversation histories between handoffs. Learn how to inject metadata and apply transcript filters.
Controlling State: to_input_list and Server IDs
3m 45sA deep dive into manual conversation management. Understand the lowest-level methods for preserving context across turns and utilizing server-side response IDs.
Automating Memory with Built-in Sessions
3m 42sSimplify your chat loops with the SDK's built-in memory system. We explore SQLiteSession, OpenAIConversationsSession, and automated persistence.
Protecting Workflows: Input and Output Guardrails
3m 32sSecure your AI pipelines by catching malicious inputs before they reach expensive models. We cover agent-level guardrails and parallel vs blocking execution.
Validating Actions: Tool-Level Guardrails
3m 43sPrevent critical data leaks at the function level. Learn how to wrap specific tools with precise input and output guardrails.
Pausing Execution: Human-in-the-Loop and RunState
3m 18sImplement safeguards for irreversible actions by enforcing human-in-the-loop approvals. We explore the RunState serialization pipeline for pausing and resuming workloads.
Injecting Local Dependencies with RunContextWrapper
3m 45sMaster dependency injection in your agent flows. Learn how to securely pass local states and database connections to tools without leaking them to the LLM.
The USB-C for AI: Intro to MCP
3m 15sAn introduction to the Model Context Protocol (MCP). Discover how this standard acts as a universal connector to easily hook AI agents into SaaS platforms.
Connecting Local MCP Servers via Stdio and HTTP
3m 32sDive deeper into MCP by running standard local servers. Learn to sandbox filesystem access and internal tools securely with MCPServerStdio.
Visualizing Workflows with Built-in Tracing
3m 18sEliminate print statement debugging using built-in SDK observability. Discover how automatic spans and traces link entire complex workflows.
Low-Latency Voice with Realtime Agents
3m 48sBreak the standard request-response paradigm. See how Realtime Agents maintain live WebSocket connections to handle interruptions and multimodal reasoning.
Building Reactive UIs with Streaming Events
3m 33sGo beyond streaming text tokens. Utilize semantic streaming events to build ultra-responsive frontend interfaces that react to agent actions in real time.