pub struct Step {Show 14 fields
pub id: u64,
pub tool: String,
pub title: String,
pub access: ToolAccess,
pub status: StepStatus,
pub detail: String,
pub changes: Vec<FileChange>,
pub at: usize,
pub media: Vec<MediaRef>,
pub preview: Option<Preview>,
pub artifacts: Vec<ArtifactRef>,
pub delegation: Option<Box<Delegation>>,
pub ask: Option<Box<Ask>>,
pub views: Vec<View>,
}Expand description
One tool call inside an assistant reply.
Fields§
§id: u64Unique within the engine; also the approval id.
tool: StringTool name, e.g. read_file.
title: StringShort human title, e.g. “Read notes.md”.
access: ToolAccess§status: StepStatus§detail: StringShort detail: the arguments while running or waiting, then a result excerpt or reason.
changes: Vec<FileChange>§at: usizeByte offset into the entry’s content when the step started, for interleaving.
media: Vec<MediaRef>Charts and images this call made, shown inline.
preview: Option<Preview>What the call will do, readable, for the approval card and the expanded row.
artifacts: Vec<ArtifactRef>Artifact versions this call made, shown as cards where it happened.
delegation: Option<Box<Delegation>>The subagent run of a delegate step: its live transcript.
ask: Option<Box<Ask>>Set when the approval card isn’t an ordinary tool call: a question a tool asks while it runs, or a call a person must confirm every time. Such cards offer only Allow and Deny.
views: Vec<View>Cards shown under the step (Views, e.g. a byob.plugin_card when it made,
changed, kept or removed a plugin). Set on the finished step, and stored with it (a
transcript loaded from storage has them too).