subgraphBuilder
in the example below) and compile it.addNode
method when defining the parent graph workflowFull example: shared state schemas
Full example: different state schemas
Full example: different state schemas (two levels of subgraphs)
myChildKey
) to the grandchild state channels (myGrandchildKey
)myGrandchildKey
) back to the child state channels (myChildKey
)grandchildGraph
)myKey
) to the child state channels (myChildKey
)myChildKey
) back to the parent state channels (myKey
)childGraph
)graph.getState(config)
. To view the subgraph state, you can use graph.getState(config, { subgraphs: true })
.
View interrupted subgraph state
subgraphs: true
to stream outputs from subgraphs.Stream from subgraphs
subgraphs: true
to stream outputs from subgraphs.