Pydantic AI
Helps developers build type-safe Python AI agents with tools, validated structured outputs, and support for multiple language models.
Description
Pydantic AI is a Python framework for building AI agents and language-model applications. It uses Python typing and Pydantic schemas to define inputs, tools, and structured results.
Developers can switch between supported model providers, implement function calls, and validate responses. The framework supports MCP servers and streaming events for application interfaces.
Integrations with durable execution engines support long-running tasks, while Pydantic Evals provides agent evaluation tools. Tracing and observability can be configured through OpenTelemetry and Pydantic Logfire.
The core framework is distributed under the MIT license and installed as a Python package. Commercial model APIs generally require separate credentials and billing; Logfire and other external services have their own terms.