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 supported2 Subscribers
Add a CodeTriage badge to pydantic-ai
Help out
- Issues
- 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`
- Default Gemini `VALIDATED` tool mode on supported models
- Add realtime speech-to-speech support with `Agent.realtime()`
- 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
- Let tools, capabilities, and `agent.iter()` callers emit `CustomEvent`s into the run event stream
- 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
- Docs
- Python not yet supported