Skip to main content

Module step_list

Module step_list 

Source
Expand description

An ordered run of steps, each with its own state and its own body.

§A run of unknown length has no progress

ProgressBar already draws the line this component has to keep: a bar reports a position only when the extent of the work is known, and an unknown extent is drawn as an unknown extent rather than as a bar that happens to be part full. A run whose steps are still arriving is exactly that case — nobody has counted the work — so RunLength::Unknown makes the summary indeterminate, publishes how many steps are done, and publishes no fraction at all. Inventing one would mean dividing by a total nobody established.

§The list applies nothing

Which step is running, which failed, and why one was skipped are the caller’s facts. A step’s reason is the host’s own words, shown verbatim, and a step may carry any body the caller builds — usually a ToolCallCard.

Structs§

Step
One step of a run.
StepList
An ordered run of steps with a summary of how far it has got.

Enums§

RunLength
Whether the caller has counted the run.
StepState
Where one step has got to.