pub struct ContextDelta {
pub stage_name: String,
pub total_tokens: usize,
pub max_tokens: usize,
pub regions: Vec<RegionDelta>,
}Expand description
The change to a context window since the previously-recorded snapshot.
Fields§
§stage_name: StringThe window’s stage name at this point.
total_tokens: usizeThe window’s total token count at this point.
max_tokens: usizeThe window’s max token budget at this point.
regions: Vec<RegionDelta>Per-region changes.
Trait Implementations§
Source§impl Clone for ContextDelta
impl Clone for ContextDelta
Source§fn clone(&self) -> ContextDelta
fn clone(&self) -> ContextDelta
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 ContextDelta
impl Debug for ContextDelta
Source§impl<'de> Deserialize<'de> for ContextDelta
impl<'de> Deserialize<'de> for ContextDelta
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 ContextDelta
impl PartialEq for ContextDelta
Source§impl Serialize for ContextDelta
impl Serialize for ContextDelta
impl StructuralPartialEq for ContextDelta
Auto Trait Implementations§
impl Freeze for ContextDelta
impl RefUnwindSafe for ContextDelta
impl Send for ContextDelta
impl Sync for ContextDelta
impl Unpin for ContextDelta
impl UnsafeUnpin for ContextDelta
impl UnwindSafe for ContextDelta
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