RunRecord

class RunRecord<State>(val events: List<GraphEvent<State>>)

What happened in one run of a graph, read from the events of its stream. Get one with record.

Throws

if events does not end with GraphEvent.Completed or GraphEvent.Interrupted, as every stream of a run does.

Constructors

Link copied to clipboard
constructor(events: List<GraphEvent<State>>)

Properties

Link copied to clipboard

every event of the run, in the order it arrived.

Link copied to clipboard

The nodes that finished, in the order they finished: the path the run took. A node that ran twice is there twice. The nodes inside a subgraph are not: read them from events.

Link copied to clipboard

How the run ended: completed or paused, with its last state.

Link copied to clipboard

The state the run ended with.

Link copied to clipboard

The nodes of each step that finished, in the order of the steps. The nodes of one step ran at the same time.

Link copied to clipboard

The text the models of the run wrote, as a screen shows it that prints each piece: the pieces of every answer, joined in the order they arrived. The text of a try that failed and was followed by another is left out, because a GraphEvent.NodeRetry tells a screen to clear it.

Functions

Link copied to clipboard
open override fun toString(): String