pub struct SessionTraceStep {
pub trace_id: String,
pub origin_function: String,
pub status: String,
pub memory_query: String,
pub memory_context: String,
pub method_params: Value,
pub method_return_value: Option<Value>,
pub error_message: String,
pub session_feedback: String,
}Expand description
One agent-trace step persisted in a session — mirrors Python’s
SessionAgentTraceEntry (no created_at; ordering is positional).
Library-internal type; kept snake_case to match Python’s persisted JSON
shape so cross-SDK reads stay byte-equal. This is not an HTTP DTO —
the wire-side camelCase rule (Decision 10) does not apply here.
Fields§
§trace_id: StringServer-generated UUID4 — returned by SessionManager::add_agent_trace_step.
origin_function: String§status: StringFree-form per Python validator; typically "success" / "error".
memory_query: String§memory_context: String§method_params: ValueDefault {} — matches Python’s default_factory=dict.
method_return_value: Option<Value>§error_message: String§session_feedback: StringLLM-resolved feedback string — generation owned by SessionManager
(LIB-01); callers in this task pass "" until LIB-01 lands.
Trait Implementations§
Source§impl Clone for SessionTraceStep
impl Clone for SessionTraceStep
Source§fn clone(&self) -> SessionTraceStep
fn clone(&self) -> SessionTraceStep
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 SessionTraceStep
impl Debug for SessionTraceStep
Source§impl<'de> Deserialize<'de> for SessionTraceStep
impl<'de> Deserialize<'de> for SessionTraceStep
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 SessionTraceStep
impl RefUnwindSafe for SessionTraceStep
impl Send for SessionTraceStep
impl Sync for SessionTraceStep
impl Unpin for SessionTraceStep
impl UnsafeUnpin for SessionTraceStep
impl UnwindSafe for SessionTraceStep
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