@squidcloud/client
    Preparing search index...

    Interface StreamLangGraphOptions

    Options for streaming a new LangGraph run.

    interface StreamLangGraphOptions {
        context?: Record<string, unknown>;
        input?: Record<string, unknown>;
        session?: UpsertSessionRequest;
        threadId?: string;
        timeoutMs?: number;
        tokenTags?: string[];
    }

    Hierarchy (View Summary)

    Index
    context?: Record<string, unknown>

    Context of the run, which every node reads as LangGraph's runtime.context. It is not stored, so a resume passes its own.

    input?: Record<string, unknown>

    Initial state for the run.

    The session (squid.sessions()) the run runs in: nodes read its id from RunContext.sessionId. With the app API key, the run creates the session or updates the one with the same id. Without it, a new id creates the session with its data and a live one is attached as it is; the graph's @secureLangGraph rules see both and can refuse them.

    threadId?: string

    If provided, the run executes against this thread. If omitted, a new thread is created.

    timeoutMs?: number

    How long the run may take, in ms, before it stops and fails. At most, and by default, one hour.

    tokenTags?: string[]

    Streams only the tokens of LLM calls with one of these tags, such as those set with model.withConfig({ tags }).