python Pydantic AI Releases · · 2.27.0

pydantic-ai v2.27.0: Snowflake Cortex support and bug fixes

sdkaisnowflakegaengineerpython-agentic
feature patch

Version 2.27.0 of pydantic-ai introduces new features, including direct support for Snowflake Cortex through `SnowflakeModel` and `SnowflakeProvider`. This release also addresses several bugs, improving OTel serialization, tool return handling, and compaction processes across various adapters. These updates are relevant for developers using pydantic-ai with LLM providers and data platforms like Snowflake.

  • Add xai_agent_count to XaiModelSettings by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7155
  • Round-trip CompactionPart through the Vercel AI and AG-UI adapters by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7287
  • Add SnowflakeModel and SnowflakeProvider for Snowflake Cortex by @ayirpown in https://github.com/pydantic/pydantic-ai/pull/6150
  • Honor include_binary_content=False in every OTel serialization sink by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7131
  • Keep ToolReturn.tools in the redacted OTel shape by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7273
Features (3)
  • Add xai_agent_count to XaiModelSettings by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7155
  • Round-trip CompactionPart through the Vercel AI and AG-UI adapters by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7287
  • Add SnowflakeModel and SnowflakeProvider for Snowflake Cortex by @ayirpown in https://github.com/pydantic/pydantic-ai/pull/6150
Fixes (7)
  • Honor include_binary_content=False in every OTel serialization sink by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7131
  • Keep ToolReturn.tools in the redacted OTel shape by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7273
  • Fix SpanQuery has_attributes matching for JSON-serialized dict and list values by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/5905

  • Skip re-sending the standing prompt where the OpenAI Responses compaction item retains it by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7264

  • Round-trip Anthropic compaction encrypted_content verbatim by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7286
  • Strip the compaction provenance stamp in sanitize_messages by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7285
  • Point at the cause when a tool return or model response exceeds Temporal's payload size limit by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7157

Read the original announcement →

https://github.com/pydantic/pydantic-ai/releases/tag/v2.27.0

Related releases