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
- `MCPSamplingModel` repeats instructions every turn and drops `PromptedOutput` instructions
- `MCPSamplingModel` raises NotImplementedError for `TextContent` and `CachePoint` in user prompts
- Send `MCPSamplingModel` instructions once and include prompted output instructions
- Accept `TextContent` and `CachePoint` in `MCPSamplingModel` user prompts
- Avoid redundant `RunContext` copies when `validation_context` is unset
- Breaking out of `stream_text()` inside `run_stream()` logs "asynchronous generator is already running"
- Skip redundant `RunContext` copies when `validation_context` is unset
- Offer each on-demand capability as a route of its own on a `DecisionModel`, and keep the capability catalog out of its question framing
- Add `pydantic_ai.models.babel`: drop-in OpenAI, Anthropic, Google and Bedrock models mapped by babel
- Add Opper provider
- Docs
- Python not yet supported