pub enum ContextEditStrategy {
ClearToolUses20250919 {
trigger: Option<TriggerConfig>,
keep: Option<KeepConfig>,
clear_tool_inputs: Option<Vec<String>>,
exclude_tools: Option<Vec<String>>,
clear_at_least: Option<TriggerConfig>,
},
ClearThinking20251015 {
keep: ThinkingKeepConfig,
},
}Expand description
Context edit strategy type
Variants§
ClearToolUses20250919
Clear old tool uses/results based on input token thresholds
Fields
§
trigger: Option<TriggerConfig>Trigger threshold
§
keep: Option<KeepConfig>How many tool results to keep
§
clear_at_least: Option<TriggerConfig>Minimum amount to clear
ClearThinking20251015
Clear thinking blocks, optionally keeping last N turns
Fields
§
keep: ThinkingKeepConfigHow many thinking turns to keep
Trait Implementations§
Source§impl Clone for ContextEditStrategy
impl Clone for ContextEditStrategy
Source§fn clone(&self) -> ContextEditStrategy
fn clone(&self) -> ContextEditStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextEditStrategy
impl Debug for ContextEditStrategy
Source§impl<'de> Deserialize<'de> for ContextEditStrategy
impl<'de> Deserialize<'de> for ContextEditStrategy
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 ContextEditStrategy
impl RefUnwindSafe for ContextEditStrategy
impl Send for ContextEditStrategy
impl Sync for ContextEditStrategy
impl Unpin for ContextEditStrategy
impl UnsafeUnpin for ContextEditStrategy
impl UnwindSafe for ContextEditStrategy
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