pub struct Step {
pub trajectory_id: String,
pub step_index: u32,
pub state: StepUpdateState,
pub source: StepUpdateSource,
pub target: StepUpdateTarget,
pub kind: StepKind,
pub text: String,
pub thinking: String,
pub text_delta: String,
pub error_message: Option<String>,
pub update: StepUpdate,
}Available on crate feature
async-client only.Expand description
A step, merged across every update the harness has sent for it.
Fields§
§trajectory_id: StringThe trajectory this step belongs to. The main conversation and each subagent get their own.
step_index: u32Position within the trajectory.
state: StepUpdateStateLifecycle state as of this update.
source: StepUpdateSourceWho produced the step.
target: StepUpdateTargetWho it is addressed to.
kind: StepKindWhat the step is doing.
text: StringText accumulated so far, deltas included.
thinking: StringReasoning accumulated so far, deltas included.
text_delta: StringOnly the text that arrived in this update, for incremental rendering.
error_message: Option<String>Failure detail, when Self::state is StepUpdateState::Error.
update: StepUpdateThe frame this snapshot came from, for anything the summary omits.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more