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
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 UiUtilsServer
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/langgraph-sdkindexThreadExtension
Interface●Since v2.0

ThreadExtension

Copy
interface ThreadExtension

Bases

AsyncIterable<T>PromiseLike<T>

Methods

View source on GitHub
method
[asyncIterator]→ AsyncIterator<TYield>
method
then

Remote counterpart of an in-process run.extensions.<name> projection.

Each extension is the client-side view of a compile-time StreamTransformer projection. The server auto-forwards named StreamChannel.remote(name) outputs on the custom:<name> channel, and this handle exposes them via two dual interfaces:

  • AsyncIterable<T> — iterate every item pushed by a streaming transformer (e.g. a StreamChannel).
  • PromiseLike<T> — await resolves with the final value observed when the run terminates. For streaming transformers this is the last item pushed; for final-value transformers it is the single value emitted on run end.

Subscribing is lazy: the underlying custom:<name> subscription is opened on first property access and cached.