pub struct MemoryManagerConfig {Show 26 fields
pub compact_threshold: u64,
pub keep_recent_messages: usize,
pub model: String,
pub model_context_window: u64,
pub reserved_output_tokens: u64,
pub autocompact_buffer_tokens: u64,
pub language: String,
pub warning_threshold_percentage: u8,
pub include_memory_warning: bool,
pub summary_event_limit: usize,
pub summary_backend: Option<String>,
pub summary_model: Option<String>,
pub summary_callback: Option<SummaryCallback>,
pub tool_result_compact_threshold: usize,
pub tool_result_keep_last: usize,
pub tool_result_excerpt_head: usize,
pub tool_result_excerpt_tail: usize,
pub tool_calls_keep_last: usize,
pub assistant_no_tool_keep_last: usize,
pub tool_result_artifact_dir: PathBuf,
pub microcompact_trigger_ratio: f64,
pub microcompact_keep_recent_cycles: usize,
pub microcompact_min_result_length: usize,
pub microcompact_compactable_tools: Option<BTreeSet<String>>,
pub workspace: Option<PathBuf>,
pub session_memory: Option<SessionMemory>,
}Fields§
§compact_threshold: u64§keep_recent_messages: usize§model: String§model_context_window: u64§reserved_output_tokens: u64§autocompact_buffer_tokens: u64§language: String§warning_threshold_percentage: u8§include_memory_warning: bool§summary_event_limit: usize§summary_backend: Option<String>§summary_model: Option<String>§summary_callback: Option<SummaryCallback>§tool_result_compact_threshold: usize§tool_result_keep_last: usize§tool_result_excerpt_head: usize§tool_result_excerpt_tail: usize§tool_calls_keep_last: usize§assistant_no_tool_keep_last: usize§tool_result_artifact_dir: PathBuf§microcompact_trigger_ratio: f64§microcompact_keep_recent_cycles: usize§microcompact_min_result_length: usize§microcompact_compactable_tools: Option<BTreeSet<String>>§workspace: Option<PathBuf>§session_memory: Option<SessionMemory>Trait Implementations§
Source§impl Clone for MemoryManagerConfig
impl Clone for MemoryManagerConfig
Source§fn clone(&self) -> MemoryManagerConfig
fn clone(&self) -> MemoryManagerConfig
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 MemoryManagerConfig
impl Debug for MemoryManagerConfig
Auto Trait Implementations§
impl Freeze for MemoryManagerConfig
impl !RefUnwindSafe for MemoryManagerConfig
impl Send for MemoryManagerConfig
impl Sync for MemoryManagerConfig
impl Unpin for MemoryManagerConfig
impl UnsafeUnpin for MemoryManagerConfig
impl !UnwindSafe for MemoryManagerConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.