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
- `on_cache_bust` hook: react programmatically when a prompt-cache bust is detected
- Add `on_error` callback to `UIAdapter.run_stream`
- Add `on_error` callback to UI adapter stream terminal states
- Support deferred capability tools in realtime sessions where the provider allows mid-session tool updates
- A `before_model_request` hook mutating an `InstructionPart` compounds across steps
- Resolve tool visibility before message projection so history is only rewritten inside the model
- First-class cancellation of capability-style durable runs (Temporal signal + DBOS/Prefect equivalents)
- Verify + test DBOS/Prefect durable cancellation parity
- Realtime: fall back to `BackgroundTools`-style emulation when the model lacks native async tool calls
- Output-tool retry exhaustion drops the guidance and docs link from the `UnexpectedModelBehavior` message
- Docs
- Python not yet supported