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
- Add MCP 2026-07-28 transport contract gates
- Non-JSON-serializable tool return values crash the run late with an unactionable `PydanticSerializationError`
- V3: simplify capability composition and lifecycle dispatch
- Centralize built-in model/provider prefix routing in a lazy registry
- Centralize deferred tool-result settlement in ToolManager
- Unify internal output-candidate validation in _output
- Add DeepInfra as a model provider
- Raise `UserError` when a tool returns a non-JSON-serializable value
- `AgentRun.all_messages_json()` ignores `output_tool_return_content`
- Support revealing tools mid-session in realtime sessions on providers that allow `session.update`
- Docs
- Python not yet supported