pub struct ModelTurn {
pub model: String,
pub input: u64,
pub output: u64,
pub cache: u64,
pub cost: f64,
}Expand description
What a model cost in the turn that ends (Item::Result).
Fields§
§model: String§input: u64§output: u64§cache: u64§cost: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelTurn
impl<'de> Deserialize<'de> for ModelTurn
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
impl StructuralPartialEq for ModelTurn
Auto Trait Implementations§
impl Freeze for ModelTurn
impl RefUnwindSafe for ModelTurn
impl Send for ModelTurn
impl Sync for ModelTurn
impl Unpin for ModelTurn
impl UnsafeUnpin for ModelTurn
impl UnwindSafe for ModelTurn
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