pub struct ContextManagementConfig {
pub mode: ContextManagementMode,
pub pressure_tokens: Option<u64>,
pub rollover_tokens: Option<u64>,
pub reserve_tokens: u64,
pub finish_rounds: u32,
}Expand description
Task-aware soft context bands, parsed from context_management.* keys.
Missing thresholds use window-aware defaults (200k: 140k/180k; 1m: 250k/400k). A single override adjusts the other default as necessary to keep pressure below rollover. These settings never override the host’s hard capacity or authorize tools, disclosure, or a session transition.
Fields§
§mode: ContextManagementMode§pressure_tokens: Option<u64>Optional absolute token threshold; auto in config clears the override.
rollover_tokens: Option<u64>Optional absolute token threshold; auto in config clears the override.
reserve_tokens: u64Minimum remaining headroom before any model round. Default: 16,000.
finish_rounds: u32Maximum extra Plan/WrapUp rounds after rollover becomes due. Default: 2. Zero disables extensions; phase reports cannot renew this allowance.
Implementations§
Source§impl ContextManagementConfig
impl ContextManagementConfig
Trait Implementations§
Source§impl Clone for ContextManagementConfig
impl Clone for ContextManagementConfig
impl Copy for ContextManagementConfig
Source§impl Debug for ContextManagementConfig
impl Debug for ContextManagementConfig
Source§impl Default for ContextManagementConfig
impl Default for ContextManagementConfig
impl Eq for ContextManagementConfig
Source§impl PartialEq for ContextManagementConfig
impl PartialEq for ContextManagementConfig
impl StructuralPartialEq for ContextManagementConfig
Auto Trait Implementations§
impl Freeze for ContextManagementConfig
impl RefUnwindSafe for ContextManagementConfig
impl Send for ContextManagementConfig
impl Sync for ContextManagementConfig
impl Unpin for ContextManagementConfig
impl UnsafeUnpin for ContextManagementConfig
impl UnwindSafe for ContextManagementConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.