pub struct Trace {
pub id: String,
pub session_id: Option<String>,
pub parent_id: Option<String>,
pub trace_type: String,
pub content: String,
pub metadata: Option<Value>,
pub created_at: i64,
}Expand description
A single reasoning trace entry.
Fields§
§id: StringUnique identifier for this trace entry.
session_id: Option<String>Optional session identifier that groups related traces.
parent_id: Option<String>ID of the parent trace (for tree structures), if any.
trace_type: StringSemantic type of the trace (e.g. "thought", "tool_call", "observation").
content: StringText content of the trace entry.
metadata: Option<Value>Arbitrary JSON payload attached to this trace.
created_at: i64Unix-millisecond timestamp when the trace was recorded.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trace
impl<'de> Deserialize<'de> for Trace
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 Trace
impl RefUnwindSafe for Trace
impl Send for Trace
impl Sync for Trace
impl Unpin for Trace
impl UnsafeUnpin for Trace
impl UnwindSafe for Trace
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