SubgraphPosition

data class SubgraphPosition(val nextNodes: List<String>, val step: Int = 0, val interruptedBefore: Boolean = false, val subgraphs: Map<String, SubgraphPosition> = emptyMap())

Where a run stands inside a subgraph that was added with StateGraph.subgraph. It is a Checkpoint without a state: the state of a subgraph is kept in the state of the graph around it.

Constructors

Link copied to clipboard
constructor(nextNodes: List<String>, step: Int = 0, interruptedBefore: Boolean = false, subgraphs: Map<String, SubgraphPosition> = emptyMap())

Properties

Link copied to clipboard

the nodes of the subgraph that run when the thread is resumed.

Link copied to clipboard
val step: Int

the number of steps the subgraph has executed in this visit.

Link copied to clipboard

the same for the subgraphs among nextNodes, when subgraphs are nested.