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
- Keep a run paused for `DeferredToolRequests` or `PendingModelResponse` when content is queued, and deliver that content to the resumed run
- Add a monthly Comparison Drift workflow that re-checks the comparison pages
- Raise `ModelSchemaTooComplexError` for Anthropic's "Schema is too complex" 400, and attempt an inferred Native Output schema again in Tool Output
- Add `E2BSandbox(idle_timeout=...)` so a busy run is not paused by `sandbox_timeout`
- Cache opaque Prefect run IDs across retries
- Add output validation fallback to `ModelFallback`
- Support OpenAI-compatible models with a custom `base_url` in `AgentSpec`
- Add a summary token budget to `SummarizingCompaction`
- [cache] Add `CompactOnCacheExpiry`, which requests compaction once the prompt cache has expired
- [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it
- Docs
- Python not yet supported