PydanticAI
PydanticAI is an open-source, model-agnostic Python agent framework built by the Pydantic team, designed to bring the ergonomic, type-safe design philosophy of FastAPI to production-grade generative AI application development. It provides structured outputs, dependency injection, and first-class support for leading model providers including OpenAI, Anthropic, Google Gemini, xAI, AWS Bedrock, Cohere, Mistral, Groq, and many more. The framework integrates seamlessly with Pydantic Logfire for OpenTelemetry-based observability, and includes pydantic-graph for complex agentic workflows, pydantic-evals for systematic agent evaluation, and clai for a CLI chat interface. PydanticAI is maintained by Pydantic, a London-based developer tooling company backed by Sequoia Capital, and forms a core part of their end-to-end AI engineering stack.
APIs
PydanticAI Agent Framework
The core PydanticAI Python agent framework providing the Agent class, model provider integrations, tool registration, structured output validation, dependency injection, streami...
Pydantic Logfire
Pydantic Logfire is an OpenTelemetry-based observability platform with purpose-built features for LLM applications, including conversation panels, token tracking, cost monitorin...