Pydantic AI (also written PydanticAI) is an open-source AI agent framework developed by the team behind Pydantic, the Python data validation library. First released in 2024, it builds agents by structuring and type-checking LLM outputs with Pydantic models.
It provides a single interface to multiple LLM providers, including OpenAI, Anthropic and Google Gemini, and supports dependency injection, tool function registration and streaming. It integrates with Pydantic Logfire, the same team's observability tool.