pub struct PromptCacheBreakData {
pub contributing_reasons: Vec<String>,
pub frontier_tokens: i64,
pub primary_reason: String,
pub retention_ratio: f64,
pub shortfall_tokens: i64,
pub survived_tokens: i64,
/* private fields */
}Expand description
Session event “prompt_cache_break”. A detected loss of a previously cached prompt prefix
Fields§
§contributing_reasons: Vec<String>All reasons that contributed to the cache break, ordered by precedence
frontier_tokens: i64Prior cached prompt frontier in tokens
primary_reason: StringThe highest-precedence reason for the cache break
retention_ratio: f64Fraction of the prior cache frontier that survived
shortfall_tokens: i64Cached prefix tokens lost since the prior call
survived_tokens: i64Number of cached prefix tokens that survived
Trait Implementations§
Source§impl Clone for PromptCacheBreakData
impl Clone for PromptCacheBreakData
Source§fn clone(&self) -> PromptCacheBreakData
fn clone(&self) -> PromptCacheBreakData
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 moreSource§impl Debug for PromptCacheBreakData
impl Debug for PromptCacheBreakData
Source§impl Default for PromptCacheBreakData
impl Default for PromptCacheBreakData
Source§fn default() -> PromptCacheBreakData
fn default() -> PromptCacheBreakData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptCacheBreakData
impl<'de> Deserialize<'de> for PromptCacheBreakData
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 PromptCacheBreakData
impl RefUnwindSafe for PromptCacheBreakData
impl Send for PromptCacheBreakData
impl Sync for PromptCacheBreakData
impl Unpin for PromptCacheBreakData
impl UnsafeUnpin for PromptCacheBreakData
impl UnwindSafe for PromptCacheBreakData
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