Interrupted

data class Interrupted<out State>(val state: State, val nextNodes: List<String>) : GraphResult<State>

The run paused at an interrupt and was checkpointed. Call CompiledGraph.resume to continue with nextNodes. When a node paused the run with interrupt, state is the state the node passed and nextNodes are the nodes of its step, which run again. When that node is inside a subgraph, nextNodes has the node of the subgraph, and state holds the state of the subgraph where the mapping of StateGraph.subgraph put it. CompiledGraph.lastResult also returns it for a run that stopped between two steps without reaching an interrupt.

Constructors

Link copied to clipboard
constructor(state: State, nextNodes: List<String>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val state: State

The graph state when the run stopped.