Skip to main content

Module steps

Module steps 

Source
Available on crate feature async-client only.
Expand description

Turning a stream of StepUpdate frames into coherent steps.

The harness reports a step many times as it runs: first as STATE_ACTIVE with text_delta/thinking_delta fragments, then once more as STATE_DONE carrying the whole text. A step is identified by (trajectory_id, step_index)not by index alone, because subagents run on their own trajectories concurrently with the main one.

StepAssembler keeps the running text for each of those keys and hands back a Step snapshot per update, so a caller can render incrementally and still see a complete step at the end.

Structs§

Step
A step, merged across every update the harness has sent for it.
StepAssembler
Accumulates StepUpdate frames into Steps.

Enums§

StepKind
What a step was doing.