pub struct ModelMetrics {
pub model: String,
pub task_count: u64,
pub total_cost_microdollars: u64,
pub avg_cost_microdollars: u64,
pub avg_elapsed_ms: u64,
pub total_turns: u64,
}Expand description
Per-model aggregated metrics.
Fields§
§model: StringModel identifier.
task_count: u64Number of tasks run on this model.
total_cost_microdollars: u64Total spend for this model in microdollars.
avg_cost_microdollars: u64Average cost per task in microdollars.
avg_elapsed_ms: u64Average execution time in milliseconds.
total_turns: u64Total turns used by this model.
Trait Implementations§
Source§impl Clone for ModelMetrics
impl Clone for ModelMetrics
Source§fn clone(&self) -> ModelMetrics
fn clone(&self) -> ModelMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 ModelMetrics
impl Debug for ModelMetrics
Source§impl Default for ModelMetrics
impl Default for ModelMetrics
Source§fn default() -> ModelMetrics
fn default() -> ModelMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelMetrics
impl<'de> Deserialize<'de> for ModelMetrics
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 ModelMetrics
impl RefUnwindSafe for ModelMetrics
impl Send for ModelMetrics
impl Sync for ModelMetrics
impl Unpin for ModelMetrics
impl UnsafeUnpin for ModelMetrics
impl UnwindSafe for ModelMetrics
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