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
- 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
- Add `DurableRunCancellation` for externally cancelling a durable agent run first-party
- `on_run_error` is bypassed when `before_run` or a short-circuiting `wrap_run` raises
- `UIEventStream.transform_stream` skips native-stream teardown when closed during `before_stream()`
- [roundtrip-sweep] `ModelMessagesTypeAdapter`: `tool_kind='tool-search'` return part with non-typed content fails JSON round-trip (`ValidationError` ...)
- Realtime-specific capability lifecycle hooks, and rebuilding realtime instrumentation on them
- Revisit `FallbackModel` behavior on `ContextWindowExceeded`
- Docs
- Python not yet supported