pub struct WorkingMemoryPolicy {
pub strategy: ContextStrategy,
pub max_tokens: Option<u32>,
pub auto_compact: bool,
}Expand description
Policy for working memory management
Fields§
§strategy: ContextStrategyStrategy to use when context fills up
max_tokens: Option<u32>Maximum tokens allowed in working memory
auto_compact: boolWhether to auto-compact when near limit
Trait Implementations§
Source§impl Clone for WorkingMemoryPolicy
impl Clone for WorkingMemoryPolicy
Source§fn clone(&self) -> WorkingMemoryPolicy
fn clone(&self) -> WorkingMemoryPolicy
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 WorkingMemoryPolicy
impl Debug for WorkingMemoryPolicy
Source§impl Default for WorkingMemoryPolicy
impl Default for WorkingMemoryPolicy
Source§impl<'de> Deserialize<'de> for WorkingMemoryPolicy
impl<'de> Deserialize<'de> for WorkingMemoryPolicy
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 WorkingMemoryPolicy
impl RefUnwindSafe for WorkingMemoryPolicy
impl Send for WorkingMemoryPolicy
impl Sync for WorkingMemoryPolicy
impl Unpin for WorkingMemoryPolicy
impl UnsafeUnpin for WorkingMemoryPolicy
impl UnwindSafe for WorkingMemoryPolicy
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