pub struct CommandCompactionConfig {
pub enabled: bool,
pub token_threshold: usize,
pub model: String,
pub image_input: CommandCapabilityState,
pub effective_context_window: Option<u32>,
pub cache_summary: bool,
pub focus: Option<String>,
pub runtime_cost_owner: Option<String>,
pub workspace: Option<PathBuf>,
pub summary_instructions: Option<String>,
pub retained_user_message_tokens: usize,
}Expand description
Compaction configuration carried by ConfigAction::CompactionChanged.
Fields§
§enabled: bool§token_threshold: usize§model: String§image_input: CommandCapabilityState§effective_context_window: Option<u32>§cache_summary: bool§focus: Option<String>§runtime_cost_owner: Option<String>§workspace: Option<PathBuf>§summary_instructions: Option<String>§retained_user_message_tokens: usizeTrait Implementations§
Source§impl Clone for CommandCompactionConfig
impl Clone for CommandCompactionConfig
Source§impl Debug for CommandCompactionConfig
impl Debug for CommandCompactionConfig
impl Eq for CommandCompactionConfig
Source§impl PartialEq for CommandCompactionConfig
impl PartialEq for CommandCompactionConfig
impl StructuralPartialEq for CommandCompactionConfig
Auto Trait Implementations§
impl Freeze for CommandCompactionConfig
impl RefUnwindSafe for CommandCompactionConfig
impl Send for CommandCompactionConfig
impl Sync for CommandCompactionConfig
impl Unpin for CommandCompactionConfig
impl UnsafeUnpin for CommandCompactionConfig
impl UnwindSafe for CommandCompactionConfig
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.