-
Notifications
You must be signed in to change notification settings - Fork 183
Description
Is your feature request related to a problem? Please describe.
OpenUI currently provides streaming adapters for OpenAI (Chat Completions, Responses API, Readable Stream) and AG-UI, but there is no adapter for LangGraph. Users building agentic applications with LangGraph cannot easily connect their LangGraph backend to OpenUI's streaming renderer and chat interfaces.
Describe the solution you'd like
Add a new langGraphAdapter in @openuidev/react-headless that implements the StreamProtocolAdapter interface for LangGraph's SSE-based streaming protocol. The adapter should:
- Parse LangGraph Cloud / LangGraph SDK streaming responses (SSE events like
metadata,data,error,end). - Support multi-agent runs — correctly handle events from multiple agents/nodes in a LangGraph graph, mapping them to the appropriate OpenUI rendering flow.
- Support LangGraph-specific features like interrupts and human-in-the-loop patterns.
- Be usable via
streamProtocol="langgraph"onChatProvider. - Include a corresponding
langGraphMessageFormatconverter if the message format differs from existing ones.
Describe alternatives you've considered
- Users could write a server-side translation layer that converts LangGraph streams into a format an existing adapter (e.g., AG-UI) understands, but this adds latency and complexity.
- A generic SSE adapter could partially work, but would miss LangGraph-specific semantics like multi-agent routing and interrupts.
Additional context
Existing adapters live in packages/react-headless/src/stream/adapters/. The adapter should follow the same StreamProtocolAdapter pattern (implementing async *parse(response): AsyncIterable<AGUIEvent>). LangGraph's streaming protocol documentation: https://langchain-ai.github.io/langgraph/cloud/concepts/streaming/
Metadata
Metadata
Assignees
Labels
Type
Projects
Status