
Framework Pydantic
Pydantic AI
Pydantic's typed Python framework for agents, with model fallback, durable execution, evals and a harness.
What it is
Pydantic AI is a Python agent framework from the Pydantic team built around a typed, extensible agent loop. Models from different providers can be swapped with a string, outputs are validated against types, and capabilities add tools, MCP, memory, sub-agents and more. Related packages cover evals, typed graphs and durable execution on engines such as Temporal. It suits Python developers who want type-safe agents.
What it's useful for
Extracting validated, typed data with an LLM, or building a long-running agent that survives failures using Temporal or DBOS.
Key features
- Typed agent loop with validated structured output
- Swap models by string with fallback when a provider fails
- Capabilities for tools, MCP, memory, guardrails and sub-agents (Pydantic AI Harness)
- Durable execution on engines including Temporal, DBOS and Prefect
- Pydantic Evals and Pydantic Graph
How to use it
uv add pydantic-aiCommands are copied from the official documentation. Check the docs for the latest version before running them.
Alternatives
Open-source Python framework and runtime (AgentOS) for agents, teams and workflows served as APIs and MCP servers.
Hugging Face's minimal Python library for agents that write their actions as code, with any LLM and MCP tools.
TypeScript framework for AI agents and graph-based workflows with memory, RAG, evals and model routing.
LangChain's low-level orchestration framework for long-running, stateful agents built as graphs.
MCP servers for this
Redis's official MCP server that lets agents store, read and search data in Redis, including JSON documents and vectors.
Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.
Google Chrome team's MCP server and CLI that let coding agents control, debug and profile a live Chrome browser.
Skills for this
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.
Related resources
Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.
Anthropic's collection of starter projects for building apps and agents on the Claude API.
Python library for getting validated, typed structured output from LLMs using Pydantic models.
Mistral AI's pay-as-you-go API for chat, code completion, OCR, embeddings, audio and agents, with Python and TypeScript SDKs.