pub struct ContextPolicyV1 {
pub version: u32,
pub pressure_thresholds_ppm: PressureThresholdsPpm,
pub target_after_compress_ppm: u32,
pub preserve_recent_turns: u32,
pub renewal_carryover_ppm: u32,
pub collapse_old_assistant_narration: bool,
pub idle_micro_compact_minutes: u32,
}Expand description
Stable public context policy. Algorithm-only compactor knobs intentionally stay in
ContextConfig and are not part of this replay contract.
Fields§
§version: u32§pressure_thresholds_ppm: PressureThresholdsPpm§target_after_compress_ppm: u32§preserve_recent_turns: u32§renewal_carryover_ppm: u32§collapse_old_assistant_narration: bool§idle_micro_compact_minutes: u32Implementations§
Trait Implementations§
Source§impl Clone for ContextPolicyV1
impl Clone for ContextPolicyV1
Source§fn clone(&self) -> ContextPolicyV1
fn clone(&self) -> ContextPolicyV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextPolicyV1
impl Debug for ContextPolicyV1
Source§impl<'de> Deserialize<'de> for ContextPolicyV1
impl<'de> Deserialize<'de> for ContextPolicyV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContextPolicyV1
Source§impl PartialEq for ContextPolicyV1
impl PartialEq for ContextPolicyV1
Source§impl Serialize for ContextPolicyV1
impl Serialize for ContextPolicyV1
impl StructuralPartialEq for ContextPolicyV1
Auto Trait Implementations§
impl Freeze for ContextPolicyV1
impl RefUnwindSafe for ContextPolicyV1
impl Send for ContextPolicyV1
impl Sync for ContextPolicyV1
impl Unpin for ContextPolicyV1
impl UnsafeUnpin for ContextPolicyV1
impl UnwindSafe for ContextPolicyV1
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