python Pydantic AI Releases · · 2.36.0

Pydantic AI 2.36.0 Release Introduces Durable Operations and Tool-Call Streaming

sdkaigaengineermediapython-agentic
breaking feature patch

Pydantic AI version 2.36.0 ships with new capabilities for building robust AI agents and applications. Key enhancements include a `@durable_operation` decorator and a public backend API for integrating third-party durable execution engines, enabling long-running operations. The `clai` component now supports `--mcp-config` and tool-call streaming, improving real-time interaction capabilities. Additionally, instruction parts now have stable IDs, and `RealtimeSession.send_audio()` accepts async iterables. This release also resolves bugs related to `TestModel` generation and `ToolDefinition` caching.

  • Add --mcp-config support and tool-call streaming to clai by @Kludex in https://github.com/pydantic/pydantic-ai/pull/1374
  • Give instruction parts a stable InstructionPart.id by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6887
  • Require an explicit operation name on @durable_operation by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7868
  • Fix TestModel generation for narrow exclusive numeric bounds by @Terminator666666 in https://github.com/pydantic/pydantic-ai/pull/7800
  • Project a bare ToolDefinition into Prefect cache keys by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7872
Features (5)
  • Add --mcp-config support and tool-call streaming to clai by @Kludex in https://github.com/pydantic/pydantic-ai/pull/1374
  • Add @durable_operation for capabilities and a public backend API for third-party durable execution engines by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6696

  • Give instruction parts a stable InstructionPart.id by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6887
  • Accept async iterables in RealtimeSession.send_audio() and move the voice example to listentome by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7860

  • Require an explicit operation name on @durable_operation by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7868
Fixes (2)
  • Fix TestModel generation for narrow exclusive numeric bounds by @Terminator666666 in https://github.com/pydantic/pydantic-ai/pull/7800
  • Project a bare ToolDefinition into Prefect cache keys by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7872
Read the original announcement →

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

Related releases