migrating-openai-agents-sdk-to-pydantic-ai

Migrate Python OpenAI Agents SDK applications to Pydantic AI and, when warranted, Pydantic AI Harness. Use for `agents.Agent`, `Runner`, function tools, handoffs, guardrails, sessions, human approval, streaming, or `SandboxAgent`. Do not use for applications built directly on the OpenAI Responses API without the Agents SDK runtime.

Install
npx skills add 'https://github.com/pydantic/pydantic-ai/tree/main/pydantic_ai_slim/pydantic_ai/.agents/skills/migrating-openai-agents-sdk-to-pydantic-ai'
Download bundle ↓
main · 9e9fdc4Scanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

agents/openai.yaml

agents/openai.yamlBrowse 4 files
View on GitHub
← Back to SKILL.md
interface:  display_name: "Migrate OpenAI Agents SDK"  short_description: "Migrate OpenAI Agents SDK safely"  default_prompt: "Use $migrating-openai-agents-sdk-to-pydantic-ai to migrate the smallest complete OpenAI Agents SDK slice to Pydantic AI while preserving its observed contracts with proportionate tests."