pub struct TraceContext {
pub agent_id: Uuid,
pub depth: usize,
pub session_id: Option<String>,
pub thread_id: Option<String>,
}Expand description
Event attribution for frontends and evaluators. Session and thread are present when bound; depth lets displays distinguish nested workers.
Fields§
§agent_id: UuidStable id for this agent instance (root or subagent).
depth: usizeNesting depth: root agent is 0; each nested agent is parent depth + 1.
session_id: Option<String>§thread_id: Option<String>Implementations§
Source§impl TraceContext
impl TraceContext
Trait Implementations§
Source§impl Clone for TraceContext
impl Clone for TraceContext
Source§fn clone(&self) -> TraceContext
fn clone(&self) -> TraceContext
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 TraceContext
impl Debug for TraceContext
Auto Trait Implementations§
impl Freeze for TraceContext
impl RefUnwindSafe for TraceContext
impl Send for TraceContext
impl Sync for TraceContext
impl Unpin for TraceContext
impl UnsafeUnpin for TraceContext
impl UnwindSafe for TraceContext
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