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
- Honour or reject `type` and `disabled` in `load_mcp_toolsets` instead of silently ignoring them
- Resuming a suspended turn fails when the history holds a part that needs `prepare_messages`
- Validate deferred result categories on agent resume
- Add cancellable compaction lifecycle events for `OpenAICompaction` and Harness strategies
- `CallDeferred` raised from a model-request hook escapes the run with an empty message
- Easier way to log body of errors from provider
- NativeOutput nested validation retries duplicate the same large input once per error
- [Google] Usage Tracking: Gemini-specific token metrics leak into gen_ai.usage.details causing double-counting downstream
- Clarify concurrent `AgentStream` consumer semantics
- Expose validated partial structured outputs through UI adapters
- Docs
- Python not yet supported