class ThreadsClientBase URL of the LangGraph API server.
Defaults to http://localhost:8123, unless the runtime provides a
langgraph_api:url global override.
Headers applied to every request.
The configured API key, when present, is added as the x-api-key
header after these defaults are initialized.
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.
Streaming protocol used by stream-capable endpoints.
Defaults to "legacy" for backwards compatibility.
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.
Copy an existing thread
Count assistants matching filters.
Create a new assistant.
Delete an assistant.
Get an assistant by ID.
Get all past states for a thread.
Get state for a thread.
Stream output from a run in real-time, until the run is done.
Patch the metadata of a thread.
Prune threads by ID. The 'delete' strategy removes threads entirely. The 'keep_latest' strategy prunes old checkpoints but keeps threads and their latest state.
List assistants.
Create a run and stream the results.
Update an assistant.
Add state to a thread.
Base URL of the LangGraph API server.
Headers applied to every request.
Hook for inspecting or mutating a request before it is sent.
Streaming protocol used by stream-capable endpoints.
Default timeout, in milliseconds, applied to client requests.