# Pydantic AI

CreateWithAI Hub page: https://createwithaihub.com/frameworks/pydantic-ai
Latest version of this file: https://createwithaihub.com/frameworks/pydantic-ai.md

- Type: Framework · Category: Harnesses & Frameworks
- Publisher: Pydantic
- Pricing: Free · License: MIT

Pydantic's typed Python framework for agents, with model fallback, durable execution, evals and a harness.

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.

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

## Connection

- Language: Python
- Focus: Agents & tool use, Multi-agent, Workflows / graphs
- Model support: Multi-provider

## Install steps from the official documentation

Install with uv:

```
uv add pydantic-ai
```

## Official links

- Website: https://pydantic.dev/pydantic-ai
- Source repository: https://github.com/pydantic/pydantic-ai
- Documentation: https://pydantic.dev/docs/ai/
- Source: https://github.com/pydantic/pydantic-ai (README: description, install commands, capabilities, durable execution engines, evals/graph; MIT LICENSE)
