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.
Reference to a specific LangGraph.