python Pydantic AI Releases · · 2.27.1

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