python Pydantic AI Releases · · 2.34.0

Pydantic AI v2.34.0 Introduces LangChain Migration and GLM-5.3 Model Support

sdkaiengineerpython-agentic
feature patch

Pydantic AI version 2.34.0 has been released, bringing new features including a LangChain migration skill and support for the GLM-5.3 model within `ZaiModel`. This update enhances the library's capabilities for integrating with various AI frameworks and models. Additionally, the release addresses numerous bug fixes, improving `TestModel` generation, `FunctionSignature` rendering, and stability across several AI adapters and providers. Developers leveraging Pydantic AI for their projects, especially those working with LangChain or GLM models, will benefit from these enhancements and bug resolutions.

  • Add a LangChain migration skill by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/7679
  • Add GLM-5.3 support to ZaiModel by @aisk in https://github.com/pydantic/pydantic-ai/pull/7600
  • Fix TestModel generation for equal inclusive bounds by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7642
  • Render enum $refs as Literal in FunctionSignature by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7579
  • Fix TestModel generation of falsy JSON Schema const values by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7630
Features (2)
  • Add a LangChain migration skill by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/7679
  • Add GLM-5.3 support to ZaiModel by @aisk in https://github.com/pydantic/pydantic-ai/pull/7600
Fixes (12)
  • Fix TestModel generation for equal inclusive bounds by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7642
  • Render enum $refs as Literal in FunctionSignature by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7579
  • Fix TestModel generation of falsy JSON Schema const values by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7630
  • Fix stale UIEventStream part state on cancellation by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/7675
  • Only strip logit_bias from Cerebras model settings by @ryanl-cerebras in https://github.com/pydantic/pydantic-ai/pull/7653
  • Fix VercelAIAdapter rejecting reasoning part id in run input by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7706
  • Fix dropped zero-argument tool calls in CohereModel by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7720
  • Fix VercelProvider dropping the Groq profile for groq/-prefixed models by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7551
  • fix(evals): honor zero-valued SpanQuery maximums by @lntutor in https://github.com/pydantic/pydantic-ai/pull/6934
  • Handle asctime-form Retry-After dates in wait_retry_after() by @parveshsaini in https://github.com/pydantic/pydantic-ai/pull/7711
  • Honor agent tool retry budget for load_capability by @lntutor in https://github.com/pydantic/pydantic-ai/pull/6937
  • Recognize Bedrock’s r1 alias in deepseek_model_profile() by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/7723
Read the original announcement →

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

Related releases