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
- Add missing return type annotations to `_customize_tool_def` and `_customize_output_object`, and warning for untyped tool parameters
- fix(messages): register builtin-tool-return tags on ModelRequestPart
- fix(groq): drop non-native ThinkingParts from history to prevent reasoning leak
- [aw] Pydantic AI Regression Detector failed
- `new_messages()` includes the user `ModelRequest` on the first turn through UI adapters (Vercel AI / AG-UI) with `manage_system_prompt='server'`
- [roundtrip-sweep] ModelMessagesTypeAdapter: ModelRequest.parts rejects NativeToolReturnPart — chat-app persistence / AG-UI / Vercel AI / Temporal [Content truncated due to length]
- pr-guard: exempt pydanty PRs from auto-close & supersede near-simultaneous duplicates
- Fix `new_messages()` leaking resumed request when `before_model_request` replaces it
- fix: track `new_messages()` boundary by position so a rebuilt resumed request isn't leaked
- Add `args_before_validator` for raw tool args
- Docs
- Python not yet supported