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

Chat LangChain

What can I help with?

Enter to sendยทShift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemoteStream
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
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-sdkclientRunsClient
Classโ—Since v1.10

RunsClient

Copy
class RunsClient

Bases

BaseClient

Constructors

constructor
constructorโ†’ RunsClient<TStateType, TUpdateType, TCustomEventType>

Properties

property
apiUrl: string
property
asyncCaller: AsyncCaller
property
defaultHeaders: Record<string, HeaderValue>
property
onRequest: RequestHook
property
timeoutMs: number | undefined

Methods

method
cancelโ†’ Promise<void>

Cancel a run.

method
createโ†’ Promise<Run>

Create a run.

method
createBatchโ†’ Promise<Run[]>

Create a batch of stateless background runs.

method
deleteโ†’ Promise<void>

Delete a run.

method
fetchโ†’ Promise<[T, Response]>
method
getโ†’ Promise<Run>

Get a run by ID.

method
joinโ†’ Promise<TStateType>

Block until a run is done.

method
joinStreamโ†’ AsyncGenerator<__type>

Stream output from a run in real-time, until the run is done.

method
listโ†’ Promise<Run[]>

List all runs for a thread.

method
prepareFetchOptionsโ†’ [URL, RequestInit]
method
streamโ†’ TypedAsyncGenerator<TStreamMode, TSubgraphs, TStateType, TUpdateType, TCustomEventType>

Create a run and stream the results.

method
streamWithRetryโ†’ AsyncGenerator<T>

Protected helper for streaming with automatic retry logic. Handles both initial requests and reconnections with SSE.

method
waitโ†’ Promise<DefaultValues>

Create a run and wait for it to complete.

View source on GitHub