ADK for TypeScript: API Reference
    Preparing search index...

    Interface NodeState

    State of a node in the workflow.

    Ported from google/adk-python workflow/_node_state.py. Note that the node's output is intentionally NOT stored here — it is carried on emitted events / the node Context, not on the persisted node state.

    interface NodeState {
        attemptCount: number;
        input?: unknown;
        interrupts: string[];
        parentRunId?: string;
        resumeInputs: Record<string, unknown>;
        runCounter: number;
        runId?: string;
        status: NodeStatus;
    }

    Properties

    attemptCount: number

    The attempt count for this node run (1-based).

    input?: unknown

    The input provided to the node.

    interrupts: string[]

    The interrupt ids that are pending to be resolved.

    parentRunId?: string

    The run ID of the parent node which dynamically scheduled this node run.

    resumeInputs: Record<string, unknown>

    The responses for resuming the node, keyed by interrupt id.

    runCounter: number

    Sequential counter incremented each time the node gets a fresh run.

    Preserving this count independently of runId prevents path collisions if a node switches between custom string IDs and auto-generated numeric IDs.

    runId?: string

    The run ID of this node run.

    status: NodeStatus

    The run status of the node.