Skip to main content
Watch: I Built an AI App Without Leaving Databricks

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.

Pydantic AI and LangGraph compared field by field; rows marked Differs are where their docs differ
FieldPydantic AILangGraph
MaintainerDiffersPydanticLangChain Inc
LanguagesDiffersPythonPython, TypeScript
LicenseMITMIT
Latest versionsDiffersPython: 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)
MCPDiffersYesNot stated
Multi-agentYesYes
Durable executionYesYes
Human in the loopYesYes
StreamingYesYes
Structured outputDiffersYesNot stated
TracingYesYes
MemoryYesYes
EvalsDiffersYesNot stated
Model-agnosticDiffersYesNot stated
Install commands listedDiffers2 (Python)3 (Python and TypeScript)
Quickstart snippetPython snippet publishedPython snippet published
What it is, per its docsDiffersPydantic 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.
HomepageDifferspydantic.dev/docs/ai/overviewdocs.langchain.com/oss/python/langgraph/overview
Source repositoryDiffersgithub.com/pydantic/pydantic-aigithub.com/langchain-ai/langgraph

Install both

Copied verbatim from the page linked under each command.

Pydantic AI

Python

Terminal
pip install pydantic-ai

Source: pydantic.dev/docs/ai/overview

Terminal
uv add pydantic-ai

Source: pydantic.dev/docs/ai/overview

LangGraph

Python

Terminal
pip install -U langgraph

Source: docs.langchain.com/oss/python/langgraph/overview

Terminal
uv add langgraph

Source: docs.langchain.com/oss/python/langgraph/overview

TypeScript

Terminal
npm install @langchain/langgraph @langchain/core

Source: docs.langchain.com/oss/javascript/langgraph/install

FAQ

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

Newsletter

Agent frameworks, every week

One email per week. Framework releases, new agent tooling and what they mean for what you build.