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 supported1 Subscribers
Add a CodeTriage badge to pydantic-ai
Help out
- Issues
- ModelHTTPError caused by OpenAI client: Item of type 'function_call' was provided without its required 'reasoning' item
- Send multi-modal tool results to APIs directly as tool results, instead of separate user parts
- Expose build_run_context
- Support updated AG-UI UserMessage InputContent
- Allow customization of all prompts sent by the framework to the model
- Fix Prefect test hangs by restoring httpx default connection pool limits
- openrouter web search builtin tools support
- `OpenAIResponsesModel` should use `developer` role for `SystemPromptPart`s by default
- Create FilePart for non-image files generated by OpenAI code interpreter
- Support Agent(output_type=str | None) for optional output
- Docs
- Python not yet supported