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-sdkclientStoreClient
Class●Since v0.0

StoreClient

Copy
class StoreClient

Bases

BaseClient

Constructors

constructor
constructor

Properties

property
apiUrl: string
property
asyncCaller: AsyncCaller

Retries and concurrency for SSE/command HTTP. When omitted, requests use raw fetch with no automatic retries (same as constructing ProtocolSseTransportAdapter without this option).

property
defaultHeaders: Record<string, HeaderValue>

Headers applied to every request.

The configured API key, when present, is added as the x-api-key header after these defaults are initialized.

property
onRequest: RequestHook

Hook for inspecting or mutating a request before it is sent.

Receives the resolved URL and prepared RequestInit; return the original init or a replacement object to continue the request.

property
streamProtocol: StreamProtocol

Streaming protocol used by stream-capable endpoints.

Defaults to "legacy" for backwards compatibility.

property
timeoutMs: number | undefined

Default timeout, in milliseconds, applied to client requests.

Per-request timeoutMs values override this default. Passing null at the request level disables the configured timeout for that request.

Methods

method
deleteItem→ Promise<void>

Delete an item.

method
fetch
method
getItem→ Promise<Item | null>

Retrieve a single item.

method
listNamespaces→ Promise<ListNamespaceResponse>

List namespaces with optional match conditions.

method
prepareFetchOptions
method
putItem→ Promise<void>

Store or update an item.

method
searchItems→ Promise<SearchItemsResponse>

Search for items within a namespace prefix.

method
streamWithRetry

Inherited fromBaseClient

Properties

PapiUrl: stringPasyncCaller: AsyncCaller
—

Retries and concurrency for SSE/command HTTP. When omitted, requests

PdefaultHeaders: Record<string, HeaderValue>
—

Headers applied to every request.

PonRequest: RequestHook
—

Hook for inspecting or mutating a request before it is sent.

PstreamProtocol: StreamProtocol
—

Streaming protocol used by stream-capable endpoints.

PtimeoutMs: number
—

Default timeout, in milliseconds, applied to client requests.

Methods

MfetchMprepareFetchOptionsMstreamWithRetry
View source on GitHub