pub struct AutoCompactConfig {
pub token_threshold: usize,
pub tool_output_max_chars: usize,
pub keep_last: usize,
}Expand description
Configuration for automatic transcript compaction in agent loops.
Fields§
§token_threshold: usizeMaximum estimated tokens before triggering auto-compaction.
tool_output_max_chars: usizeMaximum character length for a single tool result before microcompaction.
keep_last: usizeNumber of recent messages to keep during auto-compaction.
Trait Implementations§
Source§impl Clone for AutoCompactConfig
impl Clone for AutoCompactConfig
Source§fn clone(&self) -> AutoCompactConfig
fn clone(&self) -> AutoCompactConfig
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 AutoCompactConfig
impl Debug for AutoCompactConfig
Auto Trait Implementations§
impl Freeze for AutoCompactConfig
impl RefUnwindSafe for AutoCompactConfig
impl Send for AutoCompactConfig
impl Sync for AutoCompactConfig
impl Unpin for AutoCompactConfig
impl UnsafeUnpin for AutoCompactConfig
impl UnwindSafe for AutoCompactConfig
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