pub struct TrajectoryStepRecord {
pub tool_name: String,
pub tool_args: Value,
pub output_summary: String,
pub duration_ms: u64,
pub is_error: bool,
pub tool_call_id: String,
pub timestamp: DateTime<Utc>,
}Expand description
A single tool execution step recorded in a session (RFC-015).
Persisted alongside the agent response so that the Web UI can render the
execution timeline (tool calls, durations, errors) when the user
re-opens the session later. Mirrors memory::sona::TrajectoryStep but
is duplicated here to avoid a kernel-state → memory dependency cycle.
Fields§
§tool_name: StringName of the tool that was called.
tool_args: ValueTool input arguments (JSON).
output_summary: StringTruncated output (max ~500 chars).
duration_ms: u64Wall-clock duration in milliseconds.
is_error: boolWhether the tool returned an error.
tool_call_id: StringProvider-specific tool call ID (for start/end correlation).
timestamp: DateTime<Utc>Timestamp when the step started.
Trait Implementations§
Source§impl Clone for TrajectoryStepRecord
impl Clone for TrajectoryStepRecord
Source§fn clone(&self) -> TrajectoryStepRecord
fn clone(&self) -> TrajectoryStepRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrajectoryStepRecord
impl Debug for TrajectoryStepRecord
Source§impl<'de> Deserialize<'de> for TrajectoryStepRecord
impl<'de> Deserialize<'de> for TrajectoryStepRecord
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
Auto Trait Implementations§
impl Freeze for TrajectoryStepRecord
impl RefUnwindSafe for TrajectoryStepRecord
impl Send for TrajectoryStepRecord
impl Sync for TrajectoryStepRecord
impl Unpin for TrajectoryStepRecord
impl UnsafeUnpin for TrajectoryStepRecord
impl UnwindSafe for TrajectoryStepRecord
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