python Pydantic AI Releases · · 2.39.0

Pydantic-AI v2.39.0 Release Delivers Multiple Bug Fixes

sdkaiazuregaengineermediapython-agentic
patch

Pydantic-AI version 2.39.0 has been released, focusing entirely on resolving several critical bugs. Key fixes include addressing `context_subtree()` exporter cache and span-processor leaks, restoring an instrumentation spec option, and improving detection of Azure content-filter errors. The update also refines the handling of speech finalized by tool calls and attribution of tool-returned media. These patches enhance the stability and reliability of the Pydantic-AI library, particularly for developers integrating with Azure services and managing media-rich AI interactions.

  • Fix the context_subtree() exporter cache and its span-processor leaks by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7667
  • Emit speech finalized by a tool call on stream_transcripts() by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8062
Fixes (5)
  • Fix the context_subtree() exporter cache and its span-processor leaks by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7667
  • Restore the Instrumentation spec option include_model_request_parameters and sharpen the undeclared-attribute merge error by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8046

  • Detect Azure content-filter errors for AzureProvider and for AsyncAzureOpenAI clients on OpenAIProvider by @quinnarnold in https://github.com/pydantic/pydantic-ai/pull/7922

  • Emit speech finalized by a tool call on stream_transcripts() by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8062
  • Attribute tool-returned media to its originating tool call when it can't ride the tool result by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7830

Read the original announcement →

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

Related releases