pub struct ToolResultCompressionConfig {
pub passthrough_threshold: usize,
pub summarize_threshold: usize,
pub total_budget: usize,
}Expand description
Configuration for Acon tool-result compression.
Constructed from AconConfig (zeph-config) at session init via the From impl.
Fields§
§passthrough_threshold: usizeToken count below which results pass through unchanged.
Also the approximate truncation target: results above this are char-truncated to
approximately this many tokens (the " [...truncated]" suffix adds ~3–4 tokens).
Default: 2000.
summarize_threshold: usizeToken count above which the caller should attempt LLM summarization before
falling back to truncation. Not enforced here — informational for the caller.
Default: 4000.
total_budget: usizeMaximum total tokens for all tool results combined in a single turn. Default: 8000.
Trait Implementations§
Source§impl Clone for ToolResultCompressionConfig
impl Clone for ToolResultCompressionConfig
Source§fn clone(&self) -> ToolResultCompressionConfig
fn clone(&self) -> ToolResultCompressionConfig
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 ToolResultCompressionConfig
impl Debug for ToolResultCompressionConfig
Source§impl From<&AconConfig> for ToolResultCompressionConfig
impl From<&AconConfig> for ToolResultCompressionConfig
Source§fn from(cfg: &AconConfig) -> Self
fn from(cfg: &AconConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolResultCompressionConfig
impl RefUnwindSafe for ToolResultCompressionConfig
impl Send for ToolResultCompressionConfig
impl Sync for ToolResultCompressionConfig
impl Unpin for ToolResultCompressionConfig
impl UnsafeUnpin for ToolResultCompressionConfig
impl UnwindSafe for ToolResultCompressionConfig
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