pub struct MemoryFlushConfig {
pub enabled: bool,
pub soft_threshold_tokens: usize,
pub system_prompt: String,
pub user_prompt: String,
}Expand description
Configuration for pre-compaction memory flush.
Fields§
§enabled: boolEnable pre-compaction memory flush.
soft_threshold_tokens: usizeTrigger flush when this many tokens remain before hard limit. Default: 4000 tokens before compaction threshold.
system_prompt: StringSystem prompt for flush turn.
user_prompt: StringUser prompt for flush turn.
Trait Implementations§
Source§impl Clone for MemoryFlushConfig
impl Clone for MemoryFlushConfig
Source§fn clone(&self) -> MemoryFlushConfig
fn clone(&self) -> MemoryFlushConfig
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 MemoryFlushConfig
impl Debug for MemoryFlushConfig
Source§impl Default for MemoryFlushConfig
impl Default for MemoryFlushConfig
Source§impl<'de> Deserialize<'de> for MemoryFlushConfig
impl<'de> Deserialize<'de> for MemoryFlushConfig
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 MemoryFlushConfig
impl RefUnwindSafe for MemoryFlushConfig
impl Send for MemoryFlushConfig
impl Sync for MemoryFlushConfig
impl Unpin for MemoryFlushConfig
impl UnsafeUnpin for MemoryFlushConfig
impl UnwindSafe for MemoryFlushConfig
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