pub struct RuntimeCompactionConfig {
pub strategy: CompactionStrategy,
pub proactive: bool,
pub budget_percent: f32,
pub observation_masking: ObservationMaskingConfig,
pub summarization: SummarizationConfig,
pub memory_tiers: HierarchicalMemoryConfig,
pub cost_control: CostControlConfig,
}Expand description
Fully hydrated compaction configuration used by the runtime implementation.
Framework applications should use the root-level
crate::CompactionConfig builder. This type represents the expanded
execution policy after capability JSON has been resolved, including
implementation-level masking and memory-tier settings.
Configured per agent/harness via CapabilityRef:
{ "ref": "compaction", "config": { "strategy": "auto", "proactive": true } }Fields§
§strategy: CompactionStrategyWhich strategy to use.
proactive: boolCompact proactively at budget_percent, not just on RequestTooLarge.
budget_percent: f32Trigger proactive compaction at this fraction of context budget.
observation_masking: ObservationMaskingConfigObservation masking settings.
summarization: SummarizationConfigSummarization settings.
memory_tiers: HierarchicalMemoryConfigHierarchical memory tier settings for hot/warm/cold management.
cost_control: CostControlConfigAlways-on cost-oriented masking for stale tool results.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeCompactionConfig
impl Clone for RuntimeCompactionConfig
Source§fn clone(&self) -> RuntimeCompactionConfig
fn clone(&self) -> RuntimeCompactionConfig
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 RuntimeCompactionConfig
impl Debug for RuntimeCompactionConfig
Source§impl Default for RuntimeCompactionConfig
impl Default for RuntimeCompactionConfig
Source§impl<'de> Deserialize<'de> for RuntimeCompactionConfig
impl<'de> Deserialize<'de> for RuntimeCompactionConfig
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
Auto Trait Implementations§
impl Freeze for RuntimeCompactionConfig
impl RefUnwindSafe for RuntimeCompactionConfig
impl Send for RuntimeCompactionConfig
impl Sync for RuntimeCompactionConfig
impl Unpin for RuntimeCompactionConfig
impl UnsafeUnpin for RuntimeCompactionConfig
impl UnwindSafe for RuntimeCompactionConfig
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