pub struct Trace {Show 19 fields
pub id: Uuid,
pub run_id: Uuid,
pub scenario_id: Uuid,
pub status: TraceStatus,
pub steps: Vec<TraceStep>,
pub final_output: Option<Value>,
pub scores: Option<DimensionScores>,
pub aggregate_score: Option<f64>,
pub failure_cluster: FailureCluster,
pub failure_reason: Option<String>,
pub review_needed: bool,
pub llm_calls: u32,
pub tool_invocations: u32,
pub input_tokens: u32,
pub output_tokens: u32,
pub latency_ms: u64,
pub retry_count: u32,
pub seed: u32,
pub created_at: DateTime<Utc>,
}Expand description
A complete execution trace for a single scenario run.
Fields§
§id: Uuid§run_id: Uuid§scenario_id: Uuid§status: TraceStatus§steps: Vec<TraceStep>Ordered list of execution steps.
final_output: Option<Value>§scores: Option<DimensionScores>§aggregate_score: Option<f64>§failure_cluster: FailureCluster§failure_reason: Option<String>§review_needed: bool§llm_calls: u32§tool_invocations: u32§input_tokens: u32§output_tokens: u32§latency_ms: u64§retry_count: u32§seed: u32§created_at: DateTime<Utc>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