python Pydantic AI Releases · · 2.32.2

Pydantic-AI v2.32.2 Delivers Critical Bug Fixes

sdkaideprecationdata-scientistpython-agentic
patch

Pydantic-AI version 2.32.2 has been released, focusing entirely on bug fixes to enhance stability and reliability. Key improvements address issues with asynchronous callable instances in `pydantic_evals` tasks and the `evaluate` decorator, alongside resolving a problem with `RunContext.cancel()` in realtime sessions. Additionally, this patch ensures proper recognition of `m.youtube.com` URLs in `VideoUrl` and standardizes DeepSeek Responses function-call replay, benefiting developers working with AI agents and model evaluation workflows.

  • Fix RunContext.cancel() in realtime sessions by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/7528
  • Recognize m.youtube.com URLs in VideoUrl by @uczltw6 in https://github.com/pydantic/pydantic-ai/pull/7592
  • Normalize DeepSeek Responses function-call replay by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7448
Fixes (5)
  • Await async callable instances in pydantic_evals tasks and the evaluate decorator by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7535

  • Fix RunContext.cancel() in realtime sessions by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/7528
  • Recognize m.youtube.com URLs in VideoUrl by @uczltw6 in https://github.com/pydantic/pydantic-ai/pull/7592
  • Normalize DeepSeek Responses function-call replay by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7448
  • Fail the workflow on UnexpectedModelBehavior and FallbackExceptionGroup under the deprecated TemporalAgent by @aviseth in https://github.com/pydantic/pydantic-ai/pull/7465

Read the original announcement →

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

Related releases