pub struct TraceContext {Show 15 fields
pub run_id: Option<String>,
pub experiment_id: Option<String>,
pub candidate_id: Option<String>,
pub candidate_parent_id: Option<String>,
pub example_id: Option<String>,
pub split: Option<String>,
pub session_id: Option<String>,
pub turn_id: Option<String>,
pub graph_node_id: Option<String>,
pub parent_graph_node_id: Option<String>,
pub turn_index: Option<usize>,
pub protocol_iteration: Option<usize>,
pub effect_id: Option<String>,
pub llm_call_id: Option<String>,
pub metadata: BTreeMap<String, Value>,
}Fields§
§run_id: Option<String>§experiment_id: Option<String>§candidate_id: Option<String>§candidate_parent_id: Option<String>§example_id: Option<String>§split: Option<String>§session_id: Option<String>§turn_id: Option<String>§graph_node_id: Option<String>§parent_graph_node_id: Option<String>§turn_index: Option<usize>§protocol_iteration: Option<usize>§effect_id: Option<String>§llm_call_id: Option<String>§metadata: BTreeMap<String, Value>Implementations§
Source§impl TraceContext
impl TraceContext
pub fn for_session(self, session_id: impl Into<String>) -> Self
pub fn for_turn_index(self, turn_index: usize) -> Self
pub fn for_turn(self, turn_id: impl Into<String>) -> Self
pub fn for_protocol_iteration(self, protocol_iteration: usize) -> Self
pub fn for_llm_call(self, llm_call_id: impl Into<String>) -> Self
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
Source§impl Default for TraceContext
impl Default for TraceContext
Source§fn default() -> TraceContext
fn default() -> TraceContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TraceContext
impl<'de> Deserialize<'de> for TraceContext
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
impl Eq for TraceContext
Source§impl PartialEq for TraceContext
impl PartialEq for TraceContext
Source§fn eq(&self, other: &TraceContext) -> bool
fn eq(&self, other: &TraceContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TraceContext
impl Serialize for TraceContext
impl StructuralPartialEq 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