pub struct TemporalDecayConfig {
pub tiers: Vec<DecayTier>,
pub decay_interval: usize,
}Expand description
Temporal decay configuration.
Older tokens are progressively compressed to lower bit widths.
Example: tiers = [DecayTier { age: 1024, bits: 3 }, DecayTier { age: 4096, bits: 2 }]
means tokens older than 1024 get 3-bit, older than 4096 get 2-bit.
Tiers must be sorted by age_threshold ascending, bits descending.
Fields§
§tiers: Vec<DecayTier>Decay tiers, sorted by age_threshold ascending.
decay_interval: usizeHow often (in tokens) to check and apply decay. Default: 128.
Trait Implementations§
Source§impl Clone for TemporalDecayConfig
impl Clone for TemporalDecayConfig
Source§impl Debug for TemporalDecayConfig
impl Debug for TemporalDecayConfig
Auto Trait Implementations§
impl Freeze for TemporalDecayConfig
impl RefUnwindSafe for TemporalDecayConfig
impl Send for TemporalDecayConfig
impl Sync for TemporalDecayConfig
impl Unpin for TemporalDecayConfig
impl UnsafeUnpin for TemporalDecayConfig
impl UnwindSafe for TemporalDecayConfig
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