Mapping of node names to their PregelNode implementations
Mapping of channel names to their BaseChannel implementations
Type of context that can be passed to the graph
OptionalcacheOptional cache for the graph, useful for caching tasks.
OptionalcallbacksCallbacks 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.
OptionalconfigurableRuntime values for attributes previously made configurable on this Runnable, or sub-Runnables.
OptionalcontextStatic context for the graph run, like userId, dbConnection etc.
OptionaldebugEnables detailed debug logging during graph execution. When enabled, prints information about:
OptionaldurabilityWhether to checkpoint during the run (or only at the end/interruption).
"async": Save checkpoint asynchronously while the next step executes (default)."sync": Save checkpoint synchronously before the next step starts."exit": Save checkpoint only when the graph exits.OptionalencodingThe encoding to use for the stream.
undefined: Use the default format."text/event-stream": Use the Server-Sent Events format.OptionalinputSpecifies which channel keys to retrieve from the checkpoint when resuming execution. This is an advanced option that you generally don't need to set manually. The graph will automatically determine the appropriate input keys based on its configuration.
OptionalinterruptList of nodes where execution should be interrupted AFTER the node runs. Similar to interruptBefore, but interrupts after node completion. Useful when the node's output needs to be reviewed before proceeding.
OptionalinterruptList of nodes where execution should be interrupted BEFORE the node runs. Can be used for debugging and advanced state manipulation use cases. For human-in-the-loop workflows, developers should prefer the
OptionalmaxMaximum number of parallel calls to make.
OptionalmetadataMetadata for this call and any sub-calls (eg. a Chain calling an LLM). Keys should be strings, values should be JSON-serializable.
OptionaloutputSpecifies which channel keys to include in the output stream and final result. Use this to filter which parts of the graph state you want to observe.
OptionalrecursionMaximum number of times a call can recurse. If not provided, defaults to 25.
OptionalrunUnique identifier for the tracer run for this call. If not provided, a new UUID will be generated.
OptionalrunName for the tracer run for this call. Defaults to the name of the class.
OptionalsignalAbort signal for this call. If provided, the call will be aborted when the signal is aborted.
OptionalstoreA shared value store that allows you to store and retrieve state across threads. Useful for implementing long-term memory patterns.
OptionalstreamControls what information is streamed during graph execution. Multiple modes can be enabled simultaneously.
Supported modes:
OptionalsubgraphsWhether to include subgraph execution details in the stream. When true, state updates from nested graphs will also be streamed.
OptionaltagsTags for this call and any sub-calls (eg. a Chain calling an LLM). You can use these to filter calls.
OptionaltimeoutTimeout for this call in milliseconds.
Configuration options for executing a Pregel graph. These options control how the graph executes, what data is streamed, and how interrupts are handled.