pub struct Step {Show 18 fields
pub id: String,
pub step_index: u32,
pub type: StepType,
pub source: StepSource,
pub target: StepTarget,
pub status: StepStatus,
pub content: String,
pub content_delta: String,
pub thinking: String,
pub thinking_delta: String,
pub tool_calls: Vec<ToolCall>,
pub error: String,
pub is_complete_response: Option<bool>,
pub structured_output: Option<Value>,
pub usage_metadata: Option<UsageMetadata>,
pub cascade_id: String,
pub trajectory_id: String,
pub http_code: u32,
}Expand description
Individual step event recording an action in the agent’s history trajectory.
Fields§
§id: StringUnique identifier for this step.
step_index: u32Positional index in the trajectory sequence.
type: StepTypeFunctional type of the step.
source: StepSourceOriginating author.
target: StepTargetDestination target.
status: StepStatusExecution status.
content: StringMain text/markdown content associated with the step.
content_delta: StringText difference delta relative to previous steps.
thinking: StringReasoning thoughts generated for this step.
thinking_delta: StringThinking reasoning difference delta relative to previous steps.
tool_calls: Vec<ToolCall>Custom tool executions registered in this step.
error: StringCaptured execution errors.
is_complete_response: Option<bool>True if this represents the final response segment from the model.
structured_output: Option<Value>Parsed structured JSON output.
usage_metadata: Option<UsageMetadata>Token usage details.
cascade_id: StringUnique identifier of the execution cascade grouping subagents.
trajectory_id: StringSub-agent trajectory grouping identifier.
http_code: u32HTTP status code (if from a network action).