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
- Let a tool hand a file to the user through the UI adapters without sending it to the model
- Record image size limits in `ModelProfile` and resize images to them in `ConvertFiles`
- Emit an event when `FallbackModel` / `ModelFallback` falls back, and raise `ModelQuotaExceededError` for every provider's out-of-credit errors
- Unified model settings chosen for one model get a 400 from the fallback model
- Tell the model when a replayed turn is from an earlier session, with a stored, framework-framed marker
- Add `on_change='auto'`, which picks append or rewrite per model profile, and make it the default
- Add lookalike notes and the announcement to the realtime live channel
- XaiModel uploads a DocumentUrl to the xAI Files API with the media type as the file extension (report.application/pdf)
- `repair_messages()` leaves a tool call unanswered when its result arrives after a later response
- FallbackCompaction._take_background discards a valid background summary as 'stale' when the anchor and the heuristic disagree (mixed-base subtraction)
- Docs
- Python not yet supported