pub struct PrunePlan {
pub kept: Vec<Range<usize>>,
pub dropped: Vec<Range<usize>>,
}Expand description
Which turns survive pruning and which are dropped, as index ranges into the
messages slice (in original order). Produced by plan_prune; the agent
uses dropped to decide what to summarize under PruneStrategy::Summarize.
Fields§
§kept: Vec<Range<usize>>Turns that survive pruning, as index ranges into the messages slice.
dropped: Vec<Range<usize>>Turns that are dropped to fit the budget, as index ranges.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrunePlan
impl RefUnwindSafe for PrunePlan
impl Send for PrunePlan
impl Sync for PrunePlan
impl Unpin for PrunePlan
impl UnsafeUnpin for PrunePlan
impl UnwindSafe for PrunePlan
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