Pydantic AI
Typed Python agent framework from the Pydantic team
What it is
A Python SDK for building agents with type-checked inputs, outputs and tools. Models are swappable by name with fallbacks, and the same agent can run behind a web frontend, in a terminal, on a durable queue or in CI. An add-on harness package covers memory, guardrails, sub-agents and planning.
Good for
- Build an agent with validated structured output
- Swap model providers without code changes
- Run agents on a durable background queue
Install or run
uv add pydantic-aiCommand as given in the project README. Read the repository before you run anything on your machine.
What you need
Python; an LLM provider API key
Sources
- https://github.com/pydantic/pydantic-ai (project README, read 10 Nov 2026)
- https://api.github.com/repos/pydantic/pydantic-ai (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.