LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
  • Stream
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
WebChannelsPregelPrebuiltRemoteStream
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/langgraph-sdkclientRunsClient
Class●Since v0.0

RunsClient

Copy
class RunsClient

Bases

BaseClient

Constructors

Properties

Methods

Inherited fromBaseClient

Properties

PapiUrl: stringPasyncCallerPdefaultHeaders: Record<string, HeaderValue>PonRequest: RequestHook
View source on GitHub
P
streamProtocol
PtimeoutMs: number

Methods

MfetchMprepareFetchOptionsMstreamWithRetry
constructor
constructor
property
apiUrl: string
property
asyncCaller: AsyncCaller
property
defaultHeaders: Record<string, HeaderValue>
property
onRequest: RequestHook
property
timeoutMs: number | undefined
method
cancel→ Promise<void>
method
create→ Promise<Assistant>
method
createBatch→ Promise<Run[]>
method
delete→ Promise<void>
method
fetch
method
get→ Promise<Assistant>
method
join→ Promise<TStateType>
method
joinStream→ AsyncGenerator<__type>
method
list→ Promise<Run[]>
method
prepareFetchOptions
method
stream→ TypedAsyncGenerator<TStreamMode, TSubgraphs, TStateType, TUpdateType, TCustomEventType>
method
streamWithRetry
method
wait→ Promise<DefaultValues>

Cancel a run.

Create a new assistant.

Create a batch of stateless background runs.

Delete an assistant.

Get an assistant by ID.

Block until a run is done.

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

List all runs for a thread.

Create a run and stream the results.

Create a run and wait for it to complete.