Pydantic-AI v2.31.0 Enhances UIEventStream and Addresses Bug Fixes
Pydantic-AI v2.31.0 introduces new flexibility for `UIEventStream` by allowing it to be built without an initial `run_input`, alongside dedicated `thread_id`/`run_id` for `AGUIEventStream`. This update also addresses bugs, including correctly attributing `FallbackModel` spans to the failing model for improved debugging. Additionally, it fixes an issue with passing `openai` through Temporal workflow sandboxes, enhancing integration reliability. These changes primarily affect developers working with UI event streams, AI model fallback logic, or Temporal workflows.
- →Pass openai through Temporal workflow sandboxes by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/7464
Features (1) ›
Allow a UIEventStream to be built without a run_input, and give AGUIEventStream its own thread_id/run_id by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7292
Fixes (2) ›
Attribute failed FallbackModel spans to the failing model, not the fallback: wrapper by @strawgate in https://github.com/pydantic/pydantic-ai/pull/7018
- Pass openai through Temporal workflow sandboxes by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/7464
https://github.com/pydantic/pydantic-ai/releases/tag/v2.31.0
Related releases
- Pydantic AI v2.34.0 Introduces LangChain Migration and GLM-5.3 Model Support Pydantic AI Releases ·
- pydantic-ai v2.33.0 Enhances Anthropic SDK Compatibility, Resolves Runtime Issues Pydantic AI Releases ·
- Pydantic-AI v2.32.2 Delivers Critical Bug Fixes Pydantic AI Releases ·
- Pydantic-AI v2.32.1 Patch Addresses Agent Execution and Anthropic Integration Bugs Pydantic AI Releases ·
- crewAI 1.15.17 Enhances Conversational Flows and Resolves Tooling Issues CrewAI Releases ·
- LangGraph Python SDK 0.4.3 Adds Decryption Feature and Fixes Cron Management LangGraph Releases ·