langchain.js
    Preparing search index...

    Type Alias CommandParams<Resume, Update, Nodes>

    type CommandParams<
        Resume = unknown,
        Update extends Record<string, unknown> = Record<string, unknown>,
        Nodes extends string = string,
    > = {
        goto?: Nodes | SendInterface<Nodes> | (Nodes | SendInterface<Nodes>)[];
        graph?: string;
        lg_name?: "Command";
        resume?: Resume;
        update?: Update | [string, unknown][];
    }

    Type Parameters

    • Resume = unknown
    • Update extends Record<string, unknown> = Record<string, unknown>
    • Nodes extends string = string
    Index

    Properties

    goto?: Nodes | SendInterface<Nodes> | (Nodes | SendInterface<Nodes>)[]

    Can be one of the following:

    • name of the node to navigate to next (any node that belongs to the specified graph)
    • sequence of node names to navigate to next
    • Send object (to execute a node with the input provided)
    • sequence of Send objects
    graph?: string

    Graph to send the command to. Supported values are:

    • None: the current graph (default)
    • The specific name of the graph to send the command to
    • Command.PARENT: closest parent graph (only supported when returned from a node in a subgraph)
    lg_name?: "Command"

    A discriminator field used to identify the type of object. Must be populated when serializing.

    Optional because it's not required to specify this when directly constructing a Command object.

    resume?: Resume

    Value to resume execution with. To be used together with interrupt.

    update?: Update | [string, unknown][]

    Update to apply to the graph's state.