pub struct CacheMissReason {
pub kind: String,
pub cache_missed_input_tokens: Option<u64>,
}Expand description
Cache-miss diagnostic emitted by the API on AssistantMessage. Indicates
why prompt caching did not hit on this turn and (when known) how many
input tokens missed the cache.
kind is kept as String (not an enum with #[serde(other)]) so the
raw value flows through to the ingest column without being collapsed
into a generic Unknown bucket.
Fields§
§kind: String§cache_missed_input_tokens: Option<u64>Trait Implementations§
Source§impl Clone for CacheMissReason
impl Clone for CacheMissReason
Source§fn clone(&self) -> CacheMissReason
fn clone(&self) -> CacheMissReason
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 CacheMissReason
impl Debug for CacheMissReason
Source§impl<'de> Deserialize<'de> for CacheMissReason
impl<'de> Deserialize<'de> for CacheMissReason
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 CacheMissReason
impl RefUnwindSafe for CacheMissReason
impl Send for CacheMissReason
impl Sync for CacheMissReason
impl Unpin for CacheMissReason
impl UnsafeUnpin for CacheMissReason
impl UnwindSafe for CacheMissReason
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