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
- `GoogleModel` never sets `include_server_side_tool_invocations` for `CodeExecutionTool`, so code execution can't be combined with function tools on Gemini 3
- Document/guard untrusted input in `load_mcp_toolsets` (stdio `command` spawns local processes; `${VAR}` expansion can read process env)
- Inconsistent metadata in `TestModel`: `agent.run()` vs `agent.run_stream()` results
- Fix two flaky tests in `test_online.py` and `test_dbos.py`
- 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]
- Docs
- Python not yet supported