pub struct MnemoConfig {
pub enabled: bool,
pub db_path: Option<PathBuf>,
pub fresh_tail_messages: usize,
pub leaf_chunk_size: usize,
pub condensed_chunk_size: usize,
pub threshold_items: usize,
pub summarization: SummarizationConfig,
}Expand description
Configuration for the memory coprocessor.
Fields§
§enabled: boolWhether mnemo is enabled.
db_path: Option<PathBuf>Path to the SQLite database.
Default: <settings_dir>/mnemo.sqlite3
fresh_tail_messages: usizeNumber of recent messages to keep verbatim (not summarized). Default: 6
leaf_chunk_size: usizeNumber of messages per leaf compaction chunk. Default: 8
condensed_chunk_size: usizeNumber of summaries per condensed compaction chunk. Default: 4
threshold_items: usizeTrigger compaction when context items exceed this count. Default: 24
summarization: SummarizationConfigSummarization configuration.
Trait Implementations§
Source§impl Clone for MnemoConfig
impl Clone for MnemoConfig
Source§fn clone(&self) -> MnemoConfig
fn clone(&self) -> MnemoConfig
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 MnemoConfig
impl Debug for MnemoConfig
Source§impl Default for MnemoConfig
impl Default for MnemoConfig
Source§impl<'de> Deserialize<'de> for MnemoConfig
impl<'de> Deserialize<'de> for MnemoConfig
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 MnemoConfig
impl RefUnwindSafe for MnemoConfig
impl Send for MnemoConfig
impl Sync for MnemoConfig
impl Unpin for MnemoConfig
impl UnsafeUnpin for MnemoConfig
impl UnwindSafe for MnemoConfig
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