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
- Guard against message-part discriminated-union drift and fix incomplete `PartStartEvent`/`PartEndEvent` part-kind `Literal`s
- Reject non-object agent spec inputs
- Auto-enable Anthropic Files API beta when messages contain `UploadedFile`
- Single-source `BinaryContent` -> `BinaryImage` narrowing in `MultiModalContent` validation
- `AnthropicModel` should auto-enable Files API beta for `UploadedFile` requests
- [roundtrip-sweep] `ToolReturnPart.content`: `BinaryContent` round-trips as a plain dict via `dump_python(mode='json')`/`validate_python` ...
- vLLM backend rejects PromptedOutput requests with 'System message must be at the beginning'
- Guard against discriminated-union / discriminator-tag drift in `messages.py` (test-suite robustness)
- `CodeMode(tools="all")` hides `load_capability`, breaking deferred capabilities
- docs: add governed OpenAI-compatible endpoint example
- Docs
- Python not yet supported