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
- fix(groq): surface `cached_tokens` and `reasoning_tokens` in usage details
- [roundtrip-sweep] ModelMessagesTypeAdapter: RetryPromptPart.content list of error details fails to round-trip when any item lacks `input`
- fix(xai): update `XSearchTool` handle limit
- fix: use running loop in chat app example
- feat: add `xai_max_turns` to `XaiModelSettings`
- feat: provider capability introspection API — let users check response_format / tool_calling support at runtime
- [groq] `cached_tokens` from groq response is dropped and not set in `ModelResponse.usage`.
- docs: add Atlas Cloud to OpenAI-compatible models
- GoogleModel silently reorders system messages by concatenating them into systemInstruction, regardless of original position
- Fix for lack-luster error trapping.
- Docs
- Python not yet supported