Skip to main content

TraceObjectiveMetrics

Struct TraceObjectiveMetrics 

Source
pub struct TraceObjectiveMetrics {
Show 48 fields pub trace_id: String, pub conversation_id: String, pub run_id: String, pub expected_turns: Option<u64>, pub expected_tool_calls: Option<u64>, pub event_count: u64, pub recognized_event_count: u64, pub unknown_event_count: u64, pub started_at_ms: Option<i64>, pub completed_at_ms: Option<i64>, pub wall_duration_ms: u64, pub model_duration_ms: u64, pub max_model_duration_ms: u64, pub tool_duration_ms: u64, pub max_tool_duration_ms: u64, pub run_started_count: u64, pub run_completed_count: u64, pub run_failed_count: u64, pub model_started_count: u64, pub model_completed_count: u64, pub model_failed_count: u64, pub tool_started_count: u64, pub tool_completed_count: u64, pub tool_failed_count: u64, pub retry_count: u64, pub context_compaction_count: u64, pub input_tokens: u64, pub input_cached_tokens: u64, pub input_cache_write_tokens: u64, pub output_tokens: u64, pub total_tokens: u64, pub cost_micros: u64, pub error_count: u64, pub timestamp_regression_count: u64, pub sequence_regression_count: u64, pub recognized_event_rate: Option<f64>, pub run_success_rate: Option<f64>, pub model_success_rate: Option<f64>, pub tool_success_rate: Option<f64>, pub turn_completion_rate: Option<f64>, pub expected_tool_completion_rate: Option<f64>, pub average_model_duration_ms: Option<f64>, pub average_tool_duration_ms: Option<f64>, pub output_tokens_per_second: Option<f64>, pub input_cache_hit_rate: Option<f64>, pub complete: bool, pub missing_signals: Vec<String>, pub observations: Vec<ObjectiveMetricObservation>,
}
Expand description

Complete bounded metric view derivable without an LLM judge or repository code.

Fields§

§trace_id: String§conversation_id: String§run_id: String§expected_turns: Option<u64>§expected_tool_calls: Option<u64>§event_count: u64§recognized_event_count: u64§unknown_event_count: u64§started_at_ms: Option<i64>§completed_at_ms: Option<i64>§wall_duration_ms: u64§model_duration_ms: u64§max_model_duration_ms: u64§tool_duration_ms: u64§max_tool_duration_ms: u64§run_started_count: u64§run_completed_count: u64§run_failed_count: u64§model_started_count: u64§model_completed_count: u64§model_failed_count: u64§tool_started_count: u64§tool_completed_count: u64§tool_failed_count: u64§retry_count: u64§context_compaction_count: u64§input_tokens: u64§input_cached_tokens: u64§input_cache_write_tokens: u64§output_tokens: u64§total_tokens: u64§cost_micros: u64§error_count: u64§timestamp_regression_count: u64§sequence_regression_count: u64§recognized_event_rate: Option<f64>§run_success_rate: Option<f64>§model_success_rate: Option<f64>§tool_success_rate: Option<f64>§turn_completion_rate: Option<f64>§expected_tool_completion_rate: Option<f64>§average_model_duration_ms: Option<f64>§average_tool_duration_ms: Option<f64>§output_tokens_per_second: Option<f64>§input_cache_hit_rate: Option<f64>§complete: bool§missing_signals: Vec<String>§observations: Vec<ObjectiveMetricObservation>

Trait Implementations§

Source§

impl Clone for TraceObjectiveMetrics

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TraceObjectiveMetrics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TraceObjectiveMetrics

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for TraceObjectiveMetrics

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TraceObjectiveMetrics

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TraceObjectiveMetrics

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.