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
- Re-record cassettes whose recorded no-output-retry request body has drifted from the code
- `DeferredToolResults.calls` smart union collapses serialized parts to plain `dict`s
- `cost_limit` silently stops covering part of a run when only some responses can be priced
- Dedup root-level `input` in tool-call `RetryPromptPart` serialization
- The `innermost` ordering tier is overloaded, and members cannot order themselves within it
- `AgentSpec` schema generation silently publishes an empty capability in two distinct ways
- ToolOutput validation retries duplicate the full input once per error, causing multiplicative context growth
- Add `run_stream_messages()` and model message boundary events
- Emit `ModelResponse` start/end events instead of making consumers infer message boundaries
- `MistralModel` sends malformed tool-call args verbatim, bypassing both `args_as_dict` and `args_as_json_str`
- Docs
- Python not yet supported