pub struct RecordedTokens {
pub input: u64,
pub output: u64,
pub cache_read: u64,
pub cache_write_5m: u64,
pub cache_write_1h: u64,
}Expand description
Token counts a harness recorded, each kind disjoint from the others.
Fields§
§input: u64Prompt tokens neither read from nor written to the cache.
output: u64Output tokens (thinking included).
cache_read: u64Prompt tokens read from the cache.
cache_write_5m: u64Prompt tokens written to the 5-minute cache.
cache_write_1h: u64Prompt tokens written to the 1-hour cache.
Implementations§
Trait Implementations§
Source§impl Clone for RecordedTokens
impl Clone for RecordedTokens
impl Copy for RecordedTokens
Source§impl Debug for RecordedTokens
impl Debug for RecordedTokens
Source§impl Default for RecordedTokens
impl Default for RecordedTokens
impl Eq for RecordedTokens
Source§impl PartialEq for RecordedTokens
impl PartialEq for RecordedTokens
impl StructuralPartialEq for RecordedTokens
Auto Trait Implementations§
impl Freeze for RecordedTokens
impl RefUnwindSafe for RecordedTokens
impl Send for RecordedTokens
impl Sync for RecordedTokens
impl Unpin for RecordedTokens
impl UnsafeUnpin for RecordedTokens
impl UnwindSafe for RecordedTokens
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.