pub struct CompactionInput {
pub blocks: Vec<ContextBlock>,
pub budget: WindowBudget,
pub estimated_tokens: usize,
}Expand description
Input handed to a Compaction implementation: the blocks to reduce,
the budget in force, and the estimate that tripped the trigger.
Fields§
§blocks: Vec<ContextBlock>The current lossless block projection to compact. Input only — fact state is never mutated by compaction.
budget: WindowBudgetThe WindowBudget in force, including model_window_limit for
the implementation’s use.
estimated_tokens: usizeThe token estimate that tripped should_compact.
Auto Trait Implementations§
impl Freeze for CompactionInput
impl RefUnwindSafe for CompactionInput
impl Send for CompactionInput
impl Sync for CompactionInput
impl Unpin for CompactionInput
impl UnsafeUnpin for CompactionInput
impl UnwindSafe for CompactionInput
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