PydanticAI

OfficialLightweight

Type-safe agent framework built on Pydantic. Brings data validation to LLM interactions with structured responses, dependency injection, and model-agnostic design.

by Pydantic8.9k starsMITUpdated Apr 2026

Installation

Install
pip install pydantic-ai

Language support

Python

Supported LLMs

OpenAIAnthropicGoogleGroqOllamaMistral

Features (8)

structured_output
dependency_injection
tool_use
streaming
type_safety
model_agnostic
testing
logfire_integration

Details

Author
Pydantic
Category
Lightweight
Languages
1
Features
8
Stars
8.9k
License
MIT
Status
Official