Type-safe Python agent framework from the team behind Pydantic.
Pydantic AI brings the ergonomics of FastAPI-style development to GenAI, using Pydantic models for structured, validated agent outputs. It is model-agnostic, supports dependency injection, streaming, tools, and multi-agent graphs, and integrates with observability via OpenTelemetry/Logfire. It emphasizes type safety and testability for production agents.
Open-source (MIT). Free to use; model usage billed by the provider. Optional Pydantic Logfire has its own free/paid tiers.