pub struct FileTrackingConfig {
pub region: String,
pub track_reads: bool,
pub track_writes: bool,
pub max_file_tokens: Option<usize>,
}Expand description
Configuration for automatic file tracking in context regions.
When configured, read_file/write_file results are automatically synced to a HashMap region, and tool results reference the system prompt instead of duplicating content.
Fields§
§region: StringName of the HashMap region to sync files to
track_reads: boolAuto-update on read_file
track_writes: boolAuto-update on write_file. (edit_file is not tracked: its arguments are
old_str/new_str, so the post-edit file body isn’t available without a
re-read.)
max_file_tokens: Option<usize>Truncate files larger than this token count in context
Trait Implementations§
Source§impl Clone for FileTrackingConfig
impl Clone for FileTrackingConfig
Source§fn clone(&self) -> FileTrackingConfig
fn clone(&self) -> FileTrackingConfig
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 FileTrackingConfig
impl Debug for FileTrackingConfig
Source§impl<'de> Deserialize<'de> for FileTrackingConfig
impl<'de> Deserialize<'de> for FileTrackingConfig
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 FileTrackingConfig
impl RefUnwindSafe for FileTrackingConfig
impl Send for FileTrackingConfig
impl Sync for FileTrackingConfig
impl Unpin for FileTrackingConfig
impl UnsafeUnpin for FileTrackingConfig
impl UnwindSafe for FileTrackingConfig
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