add_sequence(
self,
nodes: Sequence[StateNode[NodeInputT, ContextT] | tuple[str, StateNode[| Name | Type | Description |
|---|---|---|
nodes* | Sequence[StateNode[NodeInputT, ContextT] | tuple[str, StateNode[NodeInputT, ContextT]]] |
Add a sequence of nodes that will be executed in the provided order.
A sequence of StateNode (callables that accept a state arg) or (name, StateNode) tuples.
If no names are provided, the name will be inferred from the node object (e.g. a Runnable or a Callable name).
Each node will be executed in the order provided.