pub struct ContextOverLimit {
pub tokens_over: u64,
pub kind: String,
}Expand description
Why and by how much a ContextUsage exceeds its window.
Fields§
§tokens_over: u64§kind: StringHow the window was resolved: "hard_limit" (the model’s believed
limit) or "compaction_window" (a compaction-policy window).
Trait Implementations§
Source§impl Clone for ContextOverLimit
impl Clone for ContextOverLimit
Source§fn clone(&self) -> ContextOverLimit
fn clone(&self) -> ContextOverLimit
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 ContextOverLimit
impl Debug for ContextOverLimit
Source§impl<'de> Deserialize<'de> for ContextOverLimit
impl<'de> Deserialize<'de> for ContextOverLimit
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 ContextOverLimit
impl PartialEq for ContextOverLimit
Source§impl Serialize for ContextOverLimit
impl Serialize for ContextOverLimit
impl StructuralPartialEq for ContextOverLimit
Auto Trait Implementations§
impl Freeze for ContextOverLimit
impl RefUnwindSafe for ContextOverLimit
impl Send for ContextOverLimit
impl Sync for ContextOverLimit
impl Unpin for ContextOverLimit
impl UnsafeUnpin for ContextOverLimit
impl UnwindSafe for ContextOverLimit
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