pub struct ModelCallObservation {
pub selected_model: ModelId,
pub is_success: bool,
pub duration: Duration,
pub usage: Option<Usage>,
}Expand description
One completed model call observed while serving an algorithm run.
Fields§
§selected_model: ModelIdModel selected for the completed call.
is_success: boolWhether the call completed successfully.
duration: DurationTime spent waiting for the model call to resolve.
usage: Option<Usage>Normalized usage for a buffered successful response.
Trait Implementations§
Source§impl Clone for ModelCallObservation
impl Clone for ModelCallObservation
Source§fn clone(&self) -> ModelCallObservation
fn clone(&self) -> ModelCallObservation
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 moreAuto Trait Implementations§
impl Freeze for ModelCallObservation
impl RefUnwindSafe for ModelCallObservation
impl Send for ModelCallObservation
impl Sync for ModelCallObservation
impl Unpin for ModelCallObservation
impl UnsafeUnpin for ModelCallObservation
impl UnwindSafe for ModelCallObservation
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