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
- Stream and run cancellation semantics tracker
- Define whole-agent-run cancellation semantics
- Define tool-execution cancellation semantics
- Guard against message-part discriminated-union drift and fix incomplete `PartStartEvent`/`PartEndEvent` part-kind `Literal`s
- Guard against discriminated-union / discriminator-tag drift in `messages.py` (test-suite robustness)
- Stream Google `WebSearchTool` sources as native tool parts
- fix(models,providers): catch ModuleNotFoundError, not ImportError, in optional-dep guards
- Streaming: make stream_* methods sync-flip `is_complete` on early break (async-context-manager iterators)
- OpenAI Responses: stray post-done arguments delta corrupts final tool-call `args` (model-layer follow-up to #4733)
- Add display banner
- Docs
- Python not yet supported