pub struct WorkingSetConfig {
pub max_files: usize,
pub max_tokens: usize,
pub stale_after_turns: u32,
pub auto_evict: bool,
}Expand description
Working set configuration
Fields§
§max_files: usizeMaximum number of files allowed in the working set.
max_tokens: usizeMaximum total token count across all files.
stale_after_turns: u32Number of turns after which an unpinned file is considered stale.
auto_evict: boolWhether to automatically evict stale files on each turn.
Trait Implementations§
Source§impl Clone for WorkingSetConfig
impl Clone for WorkingSetConfig
Source§fn clone(&self) -> WorkingSetConfig
fn clone(&self) -> WorkingSetConfig
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 WorkingSetConfig
impl Debug for WorkingSetConfig
Source§impl Default for WorkingSetConfig
impl Default for WorkingSetConfig
Source§impl<'de> Deserialize<'de> for WorkingSetConfig
impl<'de> Deserialize<'de> for WorkingSetConfig
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 WorkingSetConfig
impl RefUnwindSafe for WorkingSetConfig
impl Send for WorkingSetConfig
impl Sync for WorkingSetConfig
impl Unpin for WorkingSetConfig
impl UnsafeUnpin for WorkingSetConfig
impl UnwindSafe for WorkingSetConfig
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