v1.42.0
pydantic/pydantic-aiv1.42.0Jan 14, 2026by DouweM
AI Summary
Adds SambaNova provider support, consistently raises `ContentFilterError` on empty responses, and adds OpenTelemetry GenAI semantic conventions. Also fixes tool call cancellation.
Key Highlights
- Add SambaNova provider support
- Consistently raise `ContentFilterError` on empty response
- Add OTel GenAI semantic convention attributes
- Cancel tool calls when Agent coroutine is cancelled
New Features
- SambaNova provider support
- Consistent `ContentFilterError` raising
- OTel GenAI semantic conventions
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Add SambaNova provider support by @Pavanmanikanta98 in https://github.com/pydantic/pydantic-ai/pull/3887 * Consistently raise `ContentFilterError` when model response is empty because of content filter by @AlanPonnachan in https://github.com/pydantic/pydantic-ai/pull/3634 * Bump google-genai to 1.56.0 by @petersli in https://github.com/pydantic/pydantic-ai/pull/3782 * Add OTel GenAI semantic convention attributes by @jimilp7 in https://github.com/pydantic/pydantic-ai/pull/3844 ### 🐛 Bug Fixes * Cancel tool calls when `Agent.run` or `Agent.run_stream_events` coroutine is cancelled by @smthngslv in https://github.com/pydantic/pydantic-ai/pull/3961 ## New Contributors * @jimilp7 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/3844 * @smthngslv made their first contribution in https://github.com/pydantic/pydantic-ai/pull/3961 * @psg2 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/3914 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.41.0...v1.42.0