PydanticAI
OfficialLightweightType-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-aiLanguage support
Python
Supported LLMs
OpenAIAnthropicGoogleGroqOllamaMistral
Features (8)
structured_outputdependency_injectiontool_usestreamingtype_safetymodel_agnostictestinglogfire_integrationSource
View on GitHubDetails
- Author
- Pydantic
- Category
- Lightweight
- Languages
- 1
- Features
- 8
- Stars
- 8.9k
- License
- MIT
- Status
- Official