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
- `AnthropicModel` sends a lone empty user prompt as an empty `messages` list
- `AnthropicModel` sends a whitespace-only user prompt as a text block, which Anthropic rejects
- fix(anthropic): drop blank mid-conversation system prompts
- Don't send empty or whitespace-only text blocks to Bedrock
- Keep the toolset id when filtering hosted MCP tools to read-only
- `GoogleModel`: `IMAGE_RECITATION`, `IMAGE_OTHER` and `TOO_MANY_TOOL_CALLS` finish reasons are not mapped
- HuggingFaceModel drops the `reasoning` field returned by the Inference API (non-streaming and streaming)
- Let a capability's tools emit capability events under `PrefixTools` and other renaming wrappers
- `Agent.from_spec` ignores an explicit `output_type=str` when the spec has an `output_schema`
- Demoted tool_search replay rebuilds the regex pattern from an unescaped BM25 query
- Docs
- Python not yet supported