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 supported2 Subscribers
Add a CodeTriage badge to pydantic-ai
Help out
- Issues
- Add OTel observability for silent message-history mutations (repair, sanitize, prepare_messages)
- Add first-party run cancellation: `AgentRun.cancel()`, `RunContext.cancel_run()`, `RunCancelled`
- Fix `GoogleCloudProvider` credential scoping and ADC auth env-var leak
- Apply tool timeouts in `ToolManager` so all toolsets honor them
- Add a first-class sandbox concept: `Sandbox` protocol, readonly `RunContext.sandbox`, and the `get_sandbox` capability hook
- Add enforcement meta-tests: public `__all__` surface, dataclass `_: KW_ONLY`, durable wrapper signature parity
- perf(streaming): buffer streamed response strings
- Optional provenance for human-in-the-loop tool approvals over UI adapters (verify an approval maps to a real server-issued pause)
- Add Crusoe as a model provider
- Add Crusoe provider
- Docs
- Python not yet supported