LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
LangGraph SDK
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • 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
LangGraph SDK
ClientAuthReactLoggingReact UiServer
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-sdkclientAssistantsClient
Class●Since v0.0

AssistantsClient

Copy
class AssistantsClient

Bases

BaseClient

Constructors

constructor
constructor

Properties

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

Methods

method
count→ Promise<number>

Count assistants matching filters.

method
create→ Promise<Assistant>

Create a new assistant.

method
delete→ Promise<void>

Delete an assistant.

method
fetch
method
get→ Promise<Assistant>

Get an assistant by ID.

method
getGraph→ Promise<AssistantGraph>

Get the JSON representation of the graph assigned to a runnable

method
getSchemas→ Promise<GraphSchema>

Get the state and config schema of the graph assigned to a runnable

method
getSubgraphs→ Promise<Subgraphs>

Get the schemas of an assistant by ID.

method
getVersions→ Promise<AssistantVersion[]>

List all versions of an assistant.

method
prepareFetchOptions
method
search→ Promise<AssistantsSearchResponse>

List assistants.

method
setLatest→ Promise<Assistant>

Change the version of an assistant.

method
streamWithRetry
method
update→ Promise<Assistant>

Update an assistant.

View source on GitHub