LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
React SDK
Vue SDK
Svelte SDK
Angular SDK
LangGraph SDK
  • Ui
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Utils
  • Server
  • Stream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
  • Store
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemote
React SDK
Vue SDK
Svelte SDK
Angular SDK
LangGraph SDK
UiClientAuthReactLoggingReact UiUtilsServerStream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraphwebGraphRunStream
Class●Since v0.3

GraphRunStream

Primary run stream for a LangGraph execution.

Implements AsyncIterable over ProtocolEvent and exposes ergonomic projections for values, messages, subgraphs, output, and interrupts. Created by createGraphRunStream.

Copy
class GraphRunStream

Constructors

constructor
constructor

Properties

property
extensions: TExtensions

Merged projections from user-supplied StreamTransformer factories. Each transformer's init() return value is spread into this object.

property
path: Namespace

Namespace path identifying this stream's position in the agent tree. An empty array for the root stream.

property
interrupted: boolean
property
interrupts: Interrupt[]
property
lifecycle: AsyncIterable<LifecycleEntry>
property
messages: AsyncIterable<ChatModelStreamHandle>
property
output: Promise<TValues>
property
signal: AbortSignal
property
subgraphs: AsyncIterable<SubgraphRunStream<Record<string, unknown>, Record<string, unknown>>>
property
values: AsyncIterable<TValues, any, any> & PromiseLike<TValues>

Methods

method
[asyncIterator]→ AsyncIterator<T>
method
abort

Programmatically abort this run. Equivalent to calling signal.abort(reason).

method
messagesFrom→ AsyncIterable<ChatModelStreamHandle>

Messages produced by a specific graph node. Use when the run has multiple model-calling nodes and you only want messages from one.

View source on GitHub