pub struct EvalRunOutputItemUsage {
pub total_tokens: i32,
pub completion_tokens: i32,
pub prompt_tokens: i32,
pub cached_tokens: i32,
}Expand description
Token usage details for the sample.
Fields§
§total_tokens: i32The total number of tokens used.
completion_tokens: i32The number of completion tokens generated.
prompt_tokens: i32The number of prompt tokens used.
cached_tokens: i32The number of tokens retrieved from cache.
Trait Implementations§
Source§impl Clone for EvalRunOutputItemUsage
impl Clone for EvalRunOutputItemUsage
Source§fn clone(&self) -> EvalRunOutputItemUsage
fn clone(&self) -> EvalRunOutputItemUsage
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 EvalRunOutputItemUsage
impl Debug for EvalRunOutputItemUsage
Source§impl<'de> Deserialize<'de> for EvalRunOutputItemUsage
impl<'de> Deserialize<'de> for EvalRunOutputItemUsage
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
Source§impl PartialEq for EvalRunOutputItemUsage
impl PartialEq for EvalRunOutputItemUsage
Source§impl Serialize for EvalRunOutputItemUsage
impl Serialize for EvalRunOutputItemUsage
impl StructuralPartialEq for EvalRunOutputItemUsage
Auto Trait Implementations§
impl Freeze for EvalRunOutputItemUsage
impl RefUnwindSafe for EvalRunOutputItemUsage
impl Send for EvalRunOutputItemUsage
impl Sync for EvalRunOutputItemUsage
impl Unpin for EvalRunOutputItemUsage
impl UnwindSafe for EvalRunOutputItemUsage
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