pub struct ModelSpec {
pub max_tokens: u64,
pub compaction_buffer_pct: f64,
}Fields§
§max_tokens: u64§compaction_buffer_pct: f64Compaction buffer percentage (0-100) When input tokens exceed (100% - compaction_buffer_pct), compaction is triggered Example: Claude Code has 22.5% buffer, so compaction happens at 77.5% input usage
Trait Implementations§
impl Copy for ModelSpec
impl StructuralPartialEq for ModelSpec
Auto Trait Implementations§
impl Freeze for ModelSpec
impl RefUnwindSafe for ModelSpec
impl Send for ModelSpec
impl Sync for ModelSpec
impl Unpin for ModelSpec
impl UnwindSafe for ModelSpec
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