pypi pydantic-ai 2.17.0
v2.17.0 (2026-07-23)

10 hours ago

What's Changed

šŸš€ Features

  • Make RequestUsage and RunUsage support arbitrary fields for upcoming genai-prices by @alexmojaki in #6683
  • Cache per-message OTel serialization to avoid O(n²) instrumentation cost by @dsfaccini in #6635

šŸ› Bug Fixes

  • Fix ContentFilterError for real Model Armor response blocks (finishReason: MODEL_ARMOR) and record moderation wire-truth cassettes by @dsfaccini in #6679

Full Changelog: v2.16.0...v2.17.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.