migrating-langchain-to-pydantic-ai

Migrate Python LangChain, LangGraph, or Deep Agents applications to Pydantic AI and, when the source uses harness features, Pydantic AI Harness. Use for LangChain agents, chains, LCEL, direct LangGraph graphs, persistence, interrupts, streaming, and `create_deep_agent` projects with planning, filesystem or sandbox backends, skills, memory, subagents, permissions, approvals, or Deep Agents Code hosts.

Install
npx skills add 'https://github.com/pydantic/pydantic-ai/tree/main/pydantic_ai_slim/pydantic_ai/.agents/skills/migrating-langchain-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 ↗
View on GitHub
← Back to SKILL.md
interface:  display_name: "Migrate LangChain or Deep Agents to Pydantic AI"  short_description: "Migrate LangChain, LangGraph, and Deep Agents safely"  default_prompt: "Use $migrating-langchain-to-pydantic-ai to migrate the smallest complete LangChain, LangGraph, or Deep Agents slice to Pydantic AI and Pydantic AI Harness while preserving its observed contracts with proportionate tests."