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

    Interface NodeContextOptions

    Options for constructing a NodeContext.

    interface NodeContextOptions {
        actions?: EventActions;
        channel: AsyncQueue<Event>;
        invocationContext: InvocationContext;
        isolationScope?: string;
        nodePath: string;
        resumeInputs?: Record<string, unknown>;
        runId: string;
        stateSchema?: SchemaLike;
    }

    Properties

    actions?: EventActions

    Accumulator for event actions (state delta, etc).

    channel: AsyncQueue<Event>
    invocationContext: InvocationContext
    isolationScope?: string

    Scope tag isolating this node's events from peer scopes.

    nodePath: string

    Dotted node path of the owning node (empty string for the root).

    resumeInputs?: Record<string, unknown>

    Responses for resuming interrupted child nodes, keyed by interrupt id.

    runId: string

    Deterministic run id of the owning node.

    stateSchema?: SchemaLike

    Declares the keys this node may write to ctx.state and their types. Resolved by the runner: the node's own schema, or the parent's.