pub struct Step {Show 13 fields
pub step_id: u64,
pub timestamp: Option<String>,
pub source: Source,
pub message: Value,
pub reasoning_effort: Option<ReasoningEffort>,
pub reasoning_content: Option<String>,
pub model_name: Option<String>,
pub tool_calls: Option<Vec<ToolCall>>,
pub observation: Option<Observation>,
pub metrics: Option<Metrics>,
pub is_copied_context: Option<bool>,
pub llm_call_count: Option<u64>,
pub extra: Option<Value>,
}Expand description
One interaction step.
Fields§
§step_id: u64Sequential id starting at 1.
timestamp: Option<String>ISO-8601 timestamp.
source: SourceWho produced the step.
message: ValueMessage content (string or content-part array since v1.6).
reasoning_effort: Option<ReasoningEffort>Agent-only: qualitative or quantitative reasoning effort.
reasoning_content: Option<String>Agent-only: chain-of-thought / reasoning content.
model_name: Option<String>Agent-only: model that produced this step.
tool_calls: Option<Vec<ToolCall>>Agent-only: tool calls issued in this step.
observation: Option<Observation>Environment feedback (agent steps; system steps since v1.2).
metrics: Option<Metrics>Agent-only: per-step LLM metrics.
is_copied_context: Option<bool>True when copied from a previous trajectory as context.
llm_call_count: Option<u64>Number of LLM calls in this step (v1.7; valid on any step source).
extra: Option<Value>Custom metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Step
impl<'de> Deserialize<'de> for Step
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Step
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