pypi pydantic-ai 2.27.0
v2.27.0 (2026-08-07)

7 hours ago

What's Changed

🚀 Features

  • Add xai_agent_count to XaiModelSettings by @pydanty[bot] in #7155
  • Round-trip CompactionPart through the Vercel AI and AG-UI adapters by @DouweM in #7287
  • Add SnowflakeModel and SnowflakeProvider for Snowflake Cortex by @ayirpown in #6150

🐛 Bug Fixes

  • Honor include_binary_content=False in every OTel serialization sink by @dsfaccini in #7131
  • Keep ToolReturn.tools in the redacted OTel shape by @DouweM in #7273
  • Fix SpanQuery has_attributes matching for JSON-serialized dict and list values by @pydanty[bot] in #5905
  • Skip re-sending the standing prompt where the OpenAI Responses compaction item retains it by @DouweM in #7264
  • Round-trip Anthropic compaction encrypted_content verbatim by @DouweM in #7286
  • Strip the compaction provenance stamp in sanitize_messages by @DouweM in #7285
  • Point at the cause when a tool return or model response exceeds Temporal's payload size limit by @dsfaccini in #7157

New Contributors

Full Changelog: v2.26.0...v2.27.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.