Industry story
Pydantic AI v2.31.0: AG-UI stream and FallbackModel fix
agent-framework reliability streaming
Pydantic AI v2.31.0 is a quiet release that solves real wiring problems. The ability to instantiate a UIEventStream without a run_input, and giving AGUIEventStream its own thread_id and run_id, means agent UI protocols can now attach to independent contexts cleanly, without contorting your run setup to accommodate them. The FallbackModel tracing fix matters too: spans were attributing failures to the fallback wrapper rather than the model that actually failed, which makes debugging a primary model outage harder than it should be. Small release, but the tracing fix alone is worth the upgrade if you run fallback chains in production.
Full analysis
Pydantic AI v2.31.0 (released 2026-08-14) adds the ability to construct a UIEventStream without requiring a run_input. For context, a UIEventStream is a real-time UI event feed for agent runs. The release also gives AGUIEventStream its own thread_id/run_id identifiers, making it easier to wire agent UI protocols into independent contexts. Two bug fixes ship alongside: failed FallbackModel spans (tracing entries for when a backup model is tried after a primary model fails) are now correctly attributed to the failing model rather than the generic fallback wrapper, and OpenAI calls now pass correctly through Temporal workflow sandboxes (isolated execution environments used in durable workflow orchestration).
Comments