pub enum MemoryStrategy {
Full,
SlidingWindow {
window_size: u32,
},
Summarized {
recent_messages_to_keep: u32,
},
}Expand description
Per-session memory strategy controlling how much conversation history is sent to the backend plugin on each call.
Variants§
Full
Send the entire active path.
SlidingWindow
Send only the most recent window_size messages.
Summarized
Send AI-generated summary + the last recent_messages_to_keep messages.
Trait Implementations§
Source§impl Clone for MemoryStrategy
impl Clone for MemoryStrategy
Source§fn clone(&self) -> MemoryStrategy
fn clone(&self) -> MemoryStrategy
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 MemoryStrategy
impl Debug for MemoryStrategy
Source§impl<'de> Deserialize<'de> for MemoryStrategy
impl<'de> Deserialize<'de> for MemoryStrategy
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 MemoryStrategy
impl RefUnwindSafe for MemoryStrategy
impl Send for MemoryStrategy
impl Sync for MemoryStrategy
impl Unpin for MemoryStrategy
impl UnsafeUnpin for MemoryStrategy
impl UnwindSafe for MemoryStrategy
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