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 supported6 Subscribers
Add a CodeTriage badge to pydantic-ai
Help out
- Issues
- Honor `Permissions` remembered approvals inside durable execution
- Cache uploaded documents per `XaiModel` instance
- Drop `register_tag`'s late-registration `UserWarning`
- Use the native file API for `OpenSandbox` workspace filesystem operations
- Let `ClearToolResults` target specific `tools`, keep whole user turns with `keep_turns`, and take a callable `placeholder`
- Add `OutputTokenLimitExceeded`, and fall back to the next model in `ModelFallback` when a response is cut off at `max_tokens`
- Reveal tools mid-session in realtime sessions on models that take tool updates, via `RealtimeModelProfile.supports_tool_updates` and `UpdateTools`
- Lower a `max_tokens` above a Claude model's maximum output to it instead of sending it
- Judge file input by media type with `supported_image_media_types`, `supported_audio_media_types` and `supported_video_media_types`
- Send a tool's text output to Qwen3 Next as a JSON string field with `needs_json_string_tool_returns`
- Docs
- Python not yet supported