pub struct ArcCompactionConfig {
pub allow_agent_compaction: bool,
}Expand description
Configuration for ARC agent-initiated compaction (#4020).
When allow_agent_compaction = true, the request_compaction internal tool is
registered and the agent can call it to trigger context summarization on demand.
Rate limiting is handled by CompactionState — only one compaction fires per turn.
§Example (TOML)
[memory.compression.arc]
allow_agent_compaction = trueFields§
§allow_agent_compaction: boolAllow the agent to request compaction via the request_compaction tool call.
Default: true.
Trait Implementations§
Source§impl Clone for ArcCompactionConfig
impl Clone for ArcCompactionConfig
Source§fn clone(&self) -> ArcCompactionConfig
fn clone(&self) -> ArcCompactionConfig
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 ArcCompactionConfig
impl Debug for ArcCompactionConfig
Source§impl Default for ArcCompactionConfig
impl Default for ArcCompactionConfig
Source§impl<'de> Deserialize<'de> for ArcCompactionConfigwhere
ArcCompactionConfig: Default,
impl<'de> Deserialize<'de> for ArcCompactionConfigwhere
ArcCompactionConfig: Default,
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 ArcCompactionConfig
impl RefUnwindSafe for ArcCompactionConfig
impl Send for ArcCompactionConfig
impl Sync for ArcCompactionConfig
impl Unpin for ArcCompactionConfig
impl UnsafeUnpin for ArcCompactionConfig
impl UnwindSafe for ArcCompactionConfig
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