# Pydantic Graph — card for AI agents

Build typed graphs and state machines with Pydantic for AI workflows.

Category: Agent, MCP and tool libraries · PyPI package `pydantic-graph` · latest version 2.64.0 (checked 2026-11-01)
Install: `pip install pydantic-graph`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 66.3 (#539 of all tools, 25 of 189 in its category)
- Used in 2 public projects set up for AI coding agents (0.0%)
- Downloads last week: 8,815,206 (as of 2026-11-17), +28.6% over 4 weeks
- GitHub stars: 21,253 (as of 2026-11-17)
- Last push: 2026-11-17

## Often used with
Pydantic 98.6%, OpenAI Python Library 95.9%, Requests 94.6%, AnyIO 93.2%, Click 93.2%, packaging 93.2%

## Checked alternatives (same job)
- LangGraph: https://agentgid.com/tools/langgraph/agent.md
- Pydantic AI: https://agentgid.com/tools/pydantic-ai/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/pydantic-graph/
- Homepage: https://pydantic.dev/docs/ai/graph/graph/
- Repository: https://github.com/pydantic/pydantic-ai

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
