OpenAI Agents SDK
Build production AI agents with the OpenAI Agents SDK. Generates agent definitions with function tools, handoff patterns, guardrails, MCP integration, and built-in tracing for multi-agent systems.
This skill covers the OpenAI Agents SDK (successor to Swarm) for building production agent systems. It generates agent definitions with system instructions, function tools with type-safe parameters, multi-agent handoff patterns for routing and escalation, input/output guardrails for safety, MCP server connections for external tools, and built-in tracing for debugging agent behavior. Covers Runner configurations and streaming responses.
When to use
Use when building AI agents with OpenAI models, implementing multi-agent handoff patterns, adding guardrails for safety, or connecting agents to MCP servers.
Examples
Support triage agent
Build a multi-agent support system with handoffs
Create an OpenAI agent system with a triage agent that routes to billing, technical, or account agents based on the user's question — with guardrails to prevent PII exposure
Research agent
Build an agent with MCP tools
Create an OpenAI agent that uses MCP servers for web search and file system access to research topics, compile findings, and save structured reports