Deletes all checkpoints for the given thread on this graph. Idempotent — succeeds on a
nonexistent thread. After deletion, getState(threadId) returns an empty state and any
subsequent invoke/resume on the same threadId starts fresh with no prior history.
The thread to delete.
Returns the current state of a LangGraph thread.
Starts a new LangGraph run and waits for the result.
For very long graphs where you don't want to hold a Promise, use invokeAsync() instead.
Initial state, optional thread to run against, and optional timeout and context of the run.
Starts a new LangGraph run without waiting for the result.
Returns a jobId — pass it to squid.job().awaitJob(jobId) or getJob(jobId) to retrieve the result later.
Use this for graphs that may run longer than is comfortable to hold a Promise for.
Initial state, optional thread to run against, and optional timeout and context of the run.
Resumes an interrupted LangGraph thread and waits for the result.
The thread must currently be in interrupted status.
The thread to resume.
Value passed to the interrupt() call inside the graph.
Optional timeout and context of the resumed run.
Resumes an interrupted LangGraph thread without waiting for the result.
Returns a jobId — pass it to squid.job().awaitJob(jobId) or getJob(jobId) to retrieve the result later.
The thread to resume.
Value passed to the interrupt() call inside the graph.
Optional timeout and context of the resumed run.
Resumes an interrupted LangGraph thread and streams the events of the resumed run, as stream does.
The thread to resume.
Value passed to the interrupt() call inside the graph.
Timeout, context and session of the resumed run, and which tokens to stream.
Starts a new LangGraph run and streams its events: what nodes write with LangGraph's stream writer, the tokens of the LLM calls that nodes make, and the AI messages that nodes write whole. The last event is the result.
Every subscription starts a run, and unsubscribing does not stop it. Streaming needs the client's socket, so a passive client throws.
Initial state, thread, timeout, context and session of the run, and which tokens to stream.
Reference to a specific LangGraph.