Pydantic-AI v2.27.1 Release Delivers Bug Fixes and Enhancements
sdkaigaengineermediapython-agentic
patch
Pydantic-AI v2.27.1 is a patch release addressing several critical bugs and introducing minor enhancements. Key fixes restore tool spans for failed argument validation and correct `XaiStreamedResponse` finish reason mapping for streaming responses. The update also improves offline web UI hosting and enables adaptive thinking with Tool Output and forced tool choice on Anthropic models. These improvements enhance the stability, debugging capabilities, and AI provider integration for developers leveraging Pydantic-AI.
- →Restore tool spans for failed argument validation by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6601
- →Fix XaiStreamedResponse finish_reason mapping for streaming responses by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6814
- →Point offline web UI hosting at the self-contained chat UI build by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7349
- →Gate RetryPromptPart OpenTelemetry content on include_content by @sean-kim05 in https://github.com/pydantic/pydantic-ai/pull/7357
Fixes (5) ›
- Restore tool spans for failed argument validation by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6601
- Fix XaiStreamedResponse finish_reason mapping for streaming responses by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6814
- Point offline web UI hosting at the self-contained chat UI build by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7349
Allow adaptive thinking with Tool Output and forced tool choice on Anthropic by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7200
- Gate RetryPromptPart OpenTelemetry content on include_content by @sean-kim05 in https://github.com/pydantic/pydantic-ai/pull/7357
Read the original announcement →
https://github.com/pydantic/pydantic-ai/releases/tag/v2.27.1
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 ·