GraphEvent
A progress event emitted by CompiledGraph.stream and CompiledGraph.streamResume.
For every executed step a stream emits a NodeStarted for each node of the step, a NodeCompleted as each of them finishes, and then one StepCompleted. While a node runs, it can add NodeProgress events of its own, and a node that runs a subgraph adds a SubgraphEvent for every event of that graph. A node with a Retry adds a NodeRetry for each try that failed and is followed by another. A stream always ends with exactly one Completed or Interrupted. When a node calls interrupt, Interrupted comes right after the events of the nodes that had started, without a StepCompleted.
Inheritors
Types
node finished in step. state is what the node returned, or for a node with a work and an update, its update applied to the state the node received. In a step with several nodes this is the node's own result, before it is combined with the others; the combined state arrives with StepCompleted.
node reported value with reportProgress while it ran in step. The events of a node arrive in the order the node reported them, after its NodeStarted and before its NodeCompleted.
A try of node failed in step, and the node will run again because it has a Retry. The event arrives before the engine waits for pause. The node has one NodeStarted and one NodeCompleted, however often it is tried.
node is about to run in step. state is the state the node receives. When a step runs several nodes in parallel, all of their NodeStarted events come before the first NodeCompleted.
event happened inside the subgraph that node runs in step. A subgraph sends every event that a stream of its own would have, from the NodeStarted of its first node to its Completed or Interrupted, and they arrive after the NodeStarted of node and before its NodeCompleted. The steps inside event are those of the subgraph, which start at 1 on every visit.