pypi pydantic-ai 2.13.0
v2.13.0 (2026-07-17)

4 hours ago

What's Changed

🚀 Features

  • Add include_model_request_parameters instrumentation setting to omit the model_request_parameters span attribute by @dsfaccini in #6488
  • Add RaiseContentFilterError capability to raise content filter error for non-empty content filter responses by @dsfaccini in #6167
  • feat(usage): add cache_hit_ratio property to RequestUsage and RunUsage by @DouweM in #6529
  • Add get_model, resolve_model_id, and for_agent capability hooks by @DouweM in #6333

🐛 Bug Fixes

  • Fix MistralModel streaming settings by @adtyavrdhn in #6563
  • Close open message parts (text, thinking, tool calls) on UI stream error by @dsfaccini in #6550
  • Fix spurious OTel Failed to detach context error when a streamed run is interrupted mid-segment by @dsfaccini in #6572
  • fix(temporal): pass through pydantic_monty in workflow sandbox by @adtyavrdhn in #6564

📦 Dependencies

Full Changelog: v2.12.0...v2.13.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.