Interface PregelOptions<Nn, Cc, ConfigurableFieldType>

Config for executing the graph.

interface PregelOptions<Nn, Cc, ConfigurableFieldType> {
    callbacks?: Callbacks;
    configurable?: ConfigurableFieldType;
    debug?: boolean;
    inputKeys?: keyof Cc | (keyof Cc)[];
    interruptAfter?: "*" | (keyof Nn)[];
    interruptBefore?: "*" | (keyof Nn)[];
    maxConcurrency?: number;
    metadata?: Record<string, unknown>;
    outputKeys?: keyof Cc | (keyof Cc)[];
    recursionLimit?: number;
    runId?: string;
    runName?: string;
    signal?: AbortSignal;
    store?: BaseStore;
    streamMode?: StreamMode | StreamMode[];
    subgraphs?: boolean;
    tags?: string[];
    timeout?: number;
}

Type Parameters

  • Nn extends StrRecord<string, PregelNode>
  • Cc extends StrRecord<string, BaseChannel | ManagedValueSpec>
  • ConfigurableFieldType extends Record<string, any> = Record<string, any>

Hierarchy

Properties

callbacks?: Callbacks

Callbacks for this call and any sub-calls (eg. a Chain calling an LLM). Tags are passed to all callbacks, metadata is passed to handle*Start callbacks.

configurable?: ConfigurableFieldType

Runtime values for attributes previously made configurable on this Runnable, or sub-Runnables.

debug?: boolean

Enable debug mode for the graph run.

inputKeys?: keyof Cc | (keyof Cc)[]
interruptAfter?: "*" | (keyof Nn)[]

The nodes to interrupt the graph run after.

interruptBefore?: "*" | (keyof Nn)[]

The nodes to interrupt the graph run before.

maxConcurrency?: number

Maximum number of parallel calls to make.

metadata?: Record<string, unknown>

Metadata for this call and any sub-calls (eg. a Chain calling an LLM). Keys should be strings, values should be JSON-serializable.

outputKeys?: keyof Cc | (keyof Cc)[]

The output keys to retrieve from the graph run.

recursionLimit?: number

Maximum number of times a call can recurse. If not provided, defaults to 25.

runId?: string

Unique identifier for the tracer run for this call. If not provided, a new UUID will be generated.

runName?: string

Name for the tracer run for this call. Defaults to the name of the class.

signal?: AbortSignal

Abort signal for this call. If provided, the call will be aborted when the signal is aborted.

store?: BaseStore

The shared value store

streamMode?: StreamMode | StreamMode[]

The stream mode for the graph run. Default is ["values"].

subgraphs?: boolean

Whether to stream subgraphs.

tags?: string[]

Tags for this call and any sub-calls (eg. a Chain calling an LLM). You can use these to filter calls.

timeout?: number

Timeout for this call in milliseconds.