pub struct EvictionResult {
pub kept: Vec<ContextItem>,
pub evicted: Vec<EvictedItem>,
pub tokens_before: u32,
pub tokens_after: u32,
pub eviction_summary: String,
}Expand description
Result of an eviction pass.
Fields§
§kept: Vec<ContextItem>Items that were kept (most recent / most accessed / pinned).
evicted: Vec<EvictedItem>Items that were evicted (summarized to one-line references).
tokens_before: u32Total tokens before eviction.
tokens_after: u32Total tokens after eviction.
eviction_summary: StringA compact summary of what was evicted, suitable for injecting into the context so the agent knows what’s no longer available.
Trait Implementations§
Source§impl Clone for EvictionResult
impl Clone for EvictionResult
Source§fn clone(&self) -> EvictionResult
fn clone(&self) -> EvictionResult
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 moreAuto Trait Implementations§
impl Freeze for EvictionResult
impl RefUnwindSafe for EvictionResult
impl Send for EvictionResult
impl Sync for EvictionResult
impl Unpin for EvictionResult
impl UnsafeUnpin for EvictionResult
impl UnwindSafe for EvictionResult
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