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
- Diff the tool population every step and record every change as a `ToolAvailabilityDeltaPart`
- Add `on_error` callback to `UIAdapter.run_stream`
- Cache-safe dynamic instructions: append changes as history deltas instead of rewriting the prefix
- Add `on_error` callback to UI adapter stream terminal states
- Add `ClaudeCodeEventStream` emitting Claude Code CLI `stream-json` from agent run events
- Support deferred capability tools in realtime sessions where the provider allows mid-session tool updates
- Realtime OpenAI/Azure/xAI: close the orphaned turn when a mid-reply reconnect restores state
- A `before_model_request` hook mutating an `InstructionPart` compounds across steps
- Recorded history can show different instructions than were sent when a hook replaces `messages`
- Resolve tool visibility before message projection so history is only rewritten inside the model
- Docs
- Python not yet supported