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 supported4 Subscribers
Add a CodeTriage badge to pydantic-ai
Help out
- Issues
- feat(FallbackModel): attribute failures to models and support `(exception, model)` `fallback_on`
- Support built-in OAuth provider
- feat: ephemeral per-request context parts for capabilities and hooks
- feat(tools): behavior annotations (`read_only`/`destructive`/`idempotent`/`open_world`) on `ToolDefinition`
- feat: Add convenience mechanism to merge assistant messages from the same turn into a single message, when using the `VercelAIAdapter.dump_messages` method
- Docs: DashScope vision example and alibaba: vs openai: integration guide
- Add `StopRun` exception to end an agent run with a given output
- Expose a public capability API to commit validated tool results as final output
- feat(evals): prototype multi-turn eval primitives
- Migrate `GoogleModel` to the Interactions API (GLA-only today; blocked on Vertex + gateway parity)
- Docs
- Python not yet supported