Agents
LangGraph 1.1 Ships v2 Streaming Format: Type-Safe Agent Streams with Pydantic Coercion
LangGraph 1.1 introduces an opt-in v2 streaming format that brings full type safety to stream(), astream(), invoke(), and ainvoke() — strongly-typed StreamPart dicts with type, ns, data, and interrupts fields. When state schema is a Pydantic model or dataclass, outputs are automatically coerced to the correct type. v1 remains the default so existing code requires no changes; the langgraph-cli 0.4.14 patch simultaneously resolves three CVEs in bundled dependencies.
↳ Follow the thread