pub struct CondenserConfig {
pub target_tokens: usize,
pub max_tokens: usize,
pub include_steps: bool,
pub max_steps: usize,
pub include_tools: bool,
pub include_errors: bool,
pub include_timing: bool,
pub preserve_decisions: bool,
pub max_decisions: usize,
}Expand description
Condensation configuration
Fields§
§target_tokens: usizeTarget token count for condensed result
max_tokens: usizeMaximum token count (hard limit)
include_steps: boolInclude step summaries
max_steps: usizeMaximum steps to summarize
include_tools: boolInclude tool call summaries
include_errors: boolInclude error summaries
include_timing: boolInclude timing information
preserve_decisions: boolPreserve key decisions
max_decisions: usizeMaximum decision count
Implementations§
Trait Implementations§
Source§impl Clone for CondenserConfig
impl Clone for CondenserConfig
Source§fn clone(&self) -> CondenserConfig
fn clone(&self) -> CondenserConfig
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 CondenserConfig
impl Debug for CondenserConfig
Source§impl Default for CondenserConfig
impl Default for CondenserConfig
Source§impl<'de> Deserialize<'de> for CondenserConfig
impl<'de> Deserialize<'de> for CondenserConfig
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 CondenserConfig
impl RefUnwindSafe for CondenserConfig
impl Send for CondenserConfig
impl Sync for CondenserConfig
impl Unpin for CondenserConfig
impl UnsafeUnpin for CondenserConfig
impl UnwindSafe for CondenserConfig
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