python Pydantic AI Releases · · 2.37.0

pydantic-ai v2.37.0 Adds glm-5.3-flash Support and Bug Fixes

sdkaigaengineerpython-agentic
feature patch

pydantic-ai v2.37.0 introduces support for the glm-5.3-flash model and includes several bug fixes. This integration enhances AI model handling, while the fixes address issues across span queries, finish reasons, tool calls, API routing, and agent tracebacks. Developers using pydantic-ai for AI model interactions, particularly those working with Z.AI or Google Vertex/Gemini APIs, will benefit. The update improves stability and broadens compatibility with different AI service providers and their specific behaviors.

  • Add glm-5.3-flash and rework the Z.AI test suite onto cassettes by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7887
  • preserve all conditions in pruned span queries by @mikemikimike in https://github.com/pydantic/pydantic-ai/pull/7499
  • Accept and map Z.AI's non-standard finish_reason values by @zhj12395 in https://github.com/pydantic/pydantic-ai/pull/7685
  • Skip inactive capability hooks in agent tracebacks by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7328
  • Context-manage models rebuilt inside durable operations by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7954
Features (1)
  • Add glm-5.3-flash and rework the Z.AI test suite onto cassettes by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7887
Fixes (9)
  • fix preserve all conditions in pruned span queries by @mikemikimike in https://github.com/pydantic/pydantic-ai/pull/7499
  • Accept and map Z.AI's non-standard finish_reason values by @zhj12395 in https://github.com/pydantic/pydantic-ai/pull/7685
  • Emit an AG-UI TEXT_MESSAGE_START for the assistant message that owns a response's tool calls by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7699

  • Route Vertex-vs-Gemini API branches in GoogleModel by client transport instead of provider name by @thejamesgore in https://github.com/pydantic/pydantic-ai/pull/7280

  • Skip inactive capability hooks in agent tracebacks by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7328
  • Context-manage models rebuilt inside durable operations by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7954
  • Reject per-run capabilities= on DBOS, matching Temporal by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6955
  • Journal Prefect tool discovery in tasks by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6966
  • Stop rebuilding unmanaged models in durable capability operations by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7972
Read the original announcement →

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

Related releases