Pydantic AI 2.36.0 Release Introduces Durable Operations and Tool-Call Streaming
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
https://github.com/pydantic/pydantic-ai/releases/tag/v2.36.0
Related releases
- Pydantic-AI v2.35.3 Patch Release Addresses Several Bug Fixes Pydantic AI Releases ·
- pydantic-ai v2.35.2 Patches GLM Routing and Tooling Issues Pydantic AI Releases ·
- Google ADK Python v1.39.1 Patch Addresses Numerous Fixes Google ADK (Python) Releases ·
- LangChain LangGraph SDK 0.4.4 Released LangGraph Releases ·
- crewAI 1.15.18 Improves Conversational Flows and Agent Stability CrewAI Releases ·
- Pydantic-AI v2.35.1 Patch Release Addresses Key Bug Fixes Pydantic AI Releases ·