Type alias PregelParams<Nn, Cc>Internal

PregelParams<Nn, Cc>: {
    autoValidate?: boolean;
    channels: Cc;
    checkpointer?: BaseCheckpointSaver | false;
    config?: LangGraphRunnableConfig;
    debug?: boolean;
    inputChannels: keyof Cc | (keyof Cc)[];
    interruptAfter?: (keyof Nn)[] | All;
    interruptBefore?: (keyof Nn)[] | All;
    name?: string;
    nodes: Nn;
    outputChannels: keyof Cc | (keyof Cc)[];
    retryPolicy?: RetryPolicy;
    stepTimeout?: number;
    store?: BaseStore;
    streamChannels?: keyof Cc | (keyof Cc)[];
    streamMode?: StreamMode | StreamMode[];
}

Parameters for creating a Pregel graph.

Type Parameters

Type declaration

  • Optional autoValidate?: boolean

    Whether to validate the graph.

    Default

    true
    
  • channels: Cc

    The channels in the graph.

  • Optional checkpointer?: BaseCheckpointSaver | false

    The checkpointer to use for the graph run.

  • Optional config?: LangGraphRunnableConfig

    The configuration for the graph run.

  • Optional debug?: boolean

    Default

    false
    
  • inputChannels: keyof Cc | (keyof Cc)[]

    The input channels for the graph run.

  • Optional interruptAfter?: (keyof Nn)[] | All

    After processing one of the nodes named in this list, the graph will be interrupted and a resume Command must be provided to proceed with the execution of this thread.

    Default

    []
    
  • Optional interruptBefore?: (keyof Nn)[] | All

    Before processing one of the nodes named in this list, the graph will be interrupted and a resume Command must be provided to proceed with the execution of this thread.

    Default

    []
    
  • Optional name?: string

    The name of the graph.

    See

    Runnable.name

  • nodes: Nn

    The nodes in the graph.

  • outputChannels: keyof Cc | (keyof Cc)[]

    The output channels for the graph run.

  • Optional retryPolicy?: RetryPolicy

    The default retry policy for this graph. For defaults, see RetryPolicy.

  • Optional stepTimeout?: number

    Default

    undefined
    
  • Optional store?: BaseStore

    Memory store to use for SharedValues.

  • Optional streamChannels?: keyof Cc | (keyof Cc)[]

    The channels to stream from the graph run.

    Default

    []
    
  • Optional streamMode?: StreamMode | StreamMode[]

    The stream mode for the graph run. See Streaming for more details.

    Default

    ["values"]