v1.76.0
pydantic/pydantic-aiv1.76.0Apr 2, 2026by DouweM
AI Summary
This update improves agent resilience by enabling automatic fallbacks for image generation and adding `agent` context to `RunContext`, alongside Mistral SDK updates.
Key Highlights
- `ImageGeneration` capability auto-fallback to subagent with imagegen model.
- Added `agent` to `RunContext` for better context access.
- Updated Mistral integration to mistralai SDK v2.
- Included `gen_ai.operation.name` span attribute in agent runs.
New Features
- Image generation auto-fallback
- `Agent` in `RunContext`
Full Release Notes
## What's Changed ### 🚀 Features * Have `ImageGeneration` capability auto-fallback to subagent with imagegen model if main model lacks imagegen by @DouweM in https://github.com/pydantic/pydantic-ai/pull/4910 * Add `agent` to `RunContext` by @DouweM in https://github.com/pydantic/pydantic-ai/pull/4922 ### 🐛 Bug Fixes * Include `gen_ai.operation.name` span attribute in agent runs by @adriangb in https://github.com/pydantic/pydantic-ai/pull/4936 ### 📦 Dependencies * Update Mistral integration to mistralai SDK v2 by @doramirdor in https://github.com/pydantic/pydantic-ai/pull/4736 ## New Contributors * @doramirdor made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4736 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.75.0...v1.76.0