pub struct TraceAnalysis {
pub total_tool_calls: usize,
pub unique_tools: usize,
pub useful_tool_calls: usize,
pub efficiency_score: f64,
pub diagnostics: Vec<TraceDiagnostic>,
}Expand description
Summary of trace analysis results.
Fields§
§total_tool_calls: usizeTotal number of tool calls in the event stream.
unique_tools: usizeNumber of unique tools used.
useful_tool_calls: usizeNumber of useful (non-redundant, non-loop) tool calls.
efficiency_score: f64Efficiency score in [0.0, 1.0]: useful_calls / total_calls (1.0 when total is 0).
diagnostics: Vec<TraceDiagnostic>Detected inefficiency patterns.
Trait Implementations§
Source§impl Clone for TraceAnalysis
impl Clone for TraceAnalysis
Source§fn clone(&self) -> TraceAnalysis
fn clone(&self) -> TraceAnalysis
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 TraceAnalysis
impl Debug for TraceAnalysis
Source§impl<'de> Deserialize<'de> for TraceAnalysis
impl<'de> Deserialize<'de> for TraceAnalysis
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 TraceAnalysis
impl RefUnwindSafe for TraceAnalysis
impl Send for TraceAnalysis
impl Sync for TraceAnalysis
impl Unpin for TraceAnalysis
impl UnsafeUnpin for TraceAnalysis
impl UnwindSafe for TraceAnalysis
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