pydantic-ai v2.27.0: Snowflake Cortex support and bug fixes
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
https://github.com/pydantic/pydantic-ai/releases/tag/v2.27.0
Related releases
- Pydantic-AI v2.29.0 Adds Azure AI Voice Live Support and FastMCP 4 Pydantic AI Releases ·
- Pydantic-AI v1.107.4 Addresses High-Severity Web UI Vulnerability Pydantic AI Releases ·
- Pydantic AI v1.107.3 Patches High-Severity Web Chat UI Vulnerability Pydantic AI Releases ·
- Pydantic-AI v2.28.0 Patches High-Severity Security Flaw, Adds Realtime Speech-to-Speech Pydantic AI Releases ·
- crewAI 1.15.15 Release Adds AI Flow Reporting, Fixes Bugs CrewAI Releases ·
- LangGraph 1.2.11 Adds Trace Policy to Nodes, Updates Checkpoints LangGraph Releases ·