pub struct TraceStore { /* private fields */ }Expand description
Stores and retrieves reasoning traces.
Implementations§
Source§impl TraceStore
impl TraceStore
Sourcepub fn add_trace(
&self,
session_id: Option<&str>,
parent_id: Option<&str>,
trace_type: &str,
content: &str,
metadata: Option<Value>,
) -> Result<String>
pub fn add_trace( &self, session_id: Option<&str>, parent_id: Option<&str>, trace_type: &str, content: &str, metadata: Option<Value>, ) -> Result<String>
Record a new trace entry. Returns the generated trace ID.
session_id: optional grouping key (e.g. a request or agent run ID).parent_id: optional ID of a parent trace for tree structures.trace_type: semantic label (e.g."thought","tool_call").content: the text body of the trace.metadata: optional JSON payload.
Auto Trait Implementations§
impl Freeze for TraceStore
impl RefUnwindSafe for TraceStore
impl Send for TraceStore
impl Sync for TraceStore
impl Unpin for TraceStore
impl UnsafeUnpin for TraceStore
impl UnwindSafe for TraceStore
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