Framework comparison - verified
Pydantic AI vs LangGraph
Pydantic AI (Pydantic) and LangGraph (LangChain Inc), compared field by field from their official docs as of October 18, 2026. Their docs differ on 5 points, listed below; the table also shows versions, install commands and links.
Key differences
- Languages: LangGraph lists TypeScript and Pydantic AI does not.
- MCP: Pydantic AI documents it; LangGraph does not state it in its docs.
- Structured output: Pydantic AI documents it; LangGraph does not state it in its docs.
- Evals: Pydantic AI documents it; LangGraph does not state it in its docs.
- Model-agnostic: Pydantic AI documents it; LangGraph does not state it in its docs.
Generated from the fields below that differ. Versions, dates and links are left to the table.
Side by side
Every field we track, with the source linked on each value. Rows marked Differs are where the two frameworks' docs differ.
| Field | Pydantic AI | LangGraph |
|---|---|---|
| MaintainerDiffers | Pydantic | LangChain Inc |
| LanguagesDiffers | Python | Python, TypeScript |
| License | MIT | MIT |
| Latest versionsDiffers | Python: pydantic-ai 2.57.0 (2026-10-16) | Python: langgraph 1.2.16 (2026-10-16); TypeScript: @langchain/langgraph 1.5.1 (2026-10-16) |
| MCPDiffers | Yes | Not stated |
| Multi-agent | Yes | Yes |
| Durable execution | Yes | Yes |
| Human in the loop | Yes | Yes |
| Streaming | Yes | Yes |
| Structured outputDiffers | Yes | Not stated |
| Tracing | Yes | Yes |
| Memory | Yes | Yes |
| EvalsDiffers | Yes | Not stated |
| Model-agnosticDiffers | Yes | Not stated |
| Install commands listedDiffers | 2 (Python) | 3 (Python and TypeScript) |
| Quickstart snippet | Python snippet published | Python snippet published |
| What it is, per its docsDiffers | Pydantic AI is a Python agent framework from the Pydantic team that provides a typed agent loop with structured outputs, typed tools and dependency injection, and lets the model be swapped across many providers with a string. | LangGraph is a low-level orchestration framework and runtime from LangChain Inc for building, managing, and deploying long-running, stateful agents, and it can be used with or without LangChain. |
| HomepageDiffers | pydantic.dev/docs/ai/overview | docs.langchain.com/oss/python/langgraph/overview |
| Source repositoryDiffers | github.com/pydantic/pydantic-ai | github.com/langchain-ai/langgraph |
Install both
Copied verbatim from the page linked under each command.
Pydantic AI
Python
pip install pydantic-aiSource: pydantic.dev/docs/ai/overview
uv add pydantic-aiSource: pydantic.dev/docs/ai/overview
LangGraph
Python
pip install -U langgraphuv add langgraphTypeScript
npm install @langchain/langgraph @langchain/coreFAQ
What is the difference between Pydantic AI and LangGraph?
Going by their official docs: Languages: LangGraph lists TypeScript and Pydantic AI does not. MCP: Pydantic AI documents it; LangGraph does not state it in its docs. Structured output: Pydantic AI documents it; LangGraph does not state it in its docs. Evals: Pydantic AI documents it; LangGraph does not state it in its docs. The table lists 1 more.
Do Pydantic AI and LangGraph both support MCP?
Pydantic AI: yes. LangGraph: not stated. "Not stated" means the docs do not say.
Which languages do Pydantic AI and LangGraph support?
Pydantic AI: Python. LangGraph: Python, TypeScript. Both list Python.
What licenses do Pydantic AI and LangGraph use?
Pydantic AI: MIT. LangGraph: MIT.
Do Pydantic AI and LangGraph support durable execution and human in the loop?
Durable execution: Pydantic AI yes, LangGraph yes. Human in the loop: Pydantic AI yes, LangGraph yes. "Not stated" means the docs do not say.
What are the latest versions of Pydantic AI and LangGraph?
As of October 18, 2026: Pydantic AI Python package pydantic-ai 2.57.0 (October 16, 2026); LangGraph Python package langgraph 1.2.16 (October 16, 2026) and TypeScript package @langchain/langgraph 1.5.1 (October 16, 2026).
More comparisons
- LangGraph vs Google Agent Development Kit (ADK)
- smolagents (Hugging Face) vs Pydantic AI
- Microsoft Agent Framework vs LangGraph
- LlamaIndex (agent workflows) vs LangGraph
- LangGraph vs CrewAITool comparison
- Claude Agent SDK vs LangGraphArticle
- Mastra vs LangGraph.jsArticle
- Vercel AI SDK vs LangGraphArticle
- All agent frameworks in one tableFeature matrix
Newsletter
Agent frameworks, every week
One email per week. Framework releases, new agent tooling and what they mean for what you build.