Back to gallery
pydantic/pydantic-ai on GitHub — open-source project preview
pydantic
Built bypydantic/

pydantic-ai

Stars
21.4k
Forks
0
Watchers
0
Open issues
0
main Updated 11 hours ago~21,354 stars/day lifetime
Editor's take

Pydantic AI is the typed Python agent SDK from the Pydantic team, now covering agents, realtime voice, image generation and embeddings with model choice as a string swap. The newer Pydantic AI Harness adds coding-agent capabilities (workspace file access, allowlisted shell) and Pydantic Evals grades outputs and tool-call trajectories. Type safety end to end is the reason to pick it over looser frameworks. The tradeoff: observability nudges you toward paid Logfire, and the surface area (SDK, Harness, Evals) has grown fast, so there is more to learn than the name suggests. MIT, about 21k stars, near-weekly releases.

Use this if

You write Python services and want typed agent inputs and outputs with built-in evals.

Skip if

Your stack is TypeScript; the Vercel AI SDK fits that world better than a Python-first library.

AI & MLFrameworks
Quick install
# Clone + explore:
git clone https://github.com/pydantic/pydantic-ai
cd pydantic-ai
# Then read the README below for setup steps.

Inferred from package · always double-check against the official README below.

Live data via GitHub REST API · Cached 30 min · Created 24 Nov 2026