pydantic-ai
https://github.com/pydantic/pydantic-ai
Python
GenAI Agent Framework, the Pydantic way
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Python not yet supported1 Subscribers
Add a CodeTriage badge to pydantic-ai
Help out
- Issues
- Anthropic tool call can return object parameter as JSON string
- Question: result.usage() under-counts on Anthropic context-management compaction-triggered streamed runs — am I reading this right?
- feat(providers): add `PerplexityProvider` and `PerplexityModel` with web search
- Support DynamicCapability with toolsets in durable execution
- fix(mcp): inherit FastMCP retries in durable wrappers
- Output validator `ctx.last_attempt` can be inaccurate when `ToolOutput.max_retries` exceeds `output_retries`
- feat: implement strict runtime validation for tool outputs
- Expose agent as OpenAI Responses API endpoint via `Agent.to_responses()`
- Content filter error is not raised for `content_filter` finish reason
- fix: omit content key for tool-call-only assistant messages
- Docs
- Python not yet supported