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
- OpenAI strict mode: `prefixItems` (tuple fields) is marked strict-compatible but is rejected; `minLength`/`maxLength` are marked incompatible but are accepted
- `AgentRun.all_messages_json()` ignores `output_tool_return_content`
- Support revealing tools mid-session in realtime sessions on providers that allow `session.update`
- Honor content-bearing `CompactionPart`s cross-provider instead of replaying the full pre-boundary history
- Support passing a `RealtimeModel` as `Agent(model=...)`
- `load_capability` called twice for the same id in one response loads it twice
- Run history processors and `ProcessHistory` capabilities before realtime session seeding
- Support richer `RunContext.enqueue()` content in realtime sessions
- Interactive human-in-the-loop tool approval in realtime sessions
- Persist realtime provider resumption handles across processes
- Docs
- Python not yet supported