@squidcloud/client
    Preparing search index...

    Class LangGraphReference

    Reference to a specific LangGraph.

    Index
    • 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.

      Parameters

      • threadId: string

        The thread to delete.

      Returns Promise<void>

    • 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.

      Note: the underlying graph execution still caps at the tenant IPC timeout (currently 4 minutes)

      Parameters

      Returns Promise<string>

    • Resumes an interrupted LangGraph thread and waits for the result. The thread must currently be in interrupted status.

      Note: graph execution caps at the tenant IPC timeout (currently 4 minutes).

      Parameters

      • threadId: string

        The thread to resume.

      • resumePayload: unknown

        Value passed to the interrupt() call inside the graph.

      Returns Promise<InvokeLangGraphSuccessResult>

    • 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.

      Note: graph execution caps at the tenant IPC timeout (currently 4 minutes)

      Parameters

      • threadId: string

        The thread to resume.

      • resumePayload: unknown

        Value passed to the interrupt() call inside the graph.

      Returns Promise<string>