pub struct CompactionConfig {
pub chunk_tokens: usize,
pub max_summary_tokens: usize,
pub instructions: String,
pub summary_options: GenerationOptions,
pub chars_per_token: usize,
}Expand description
Configuration for transcript compaction.
Fields§
§chunk_tokens: usizeEstimated tokens per chunk sent to the summarizer.
max_summary_tokens: usizeMaximum tokens allowed for the rolling summary.
As chunks are processed, the running summary can grow unbounded. This limit ensures the summary is truncated to avoid exceeding the model’s context window during multi-chunk compaction.
instructions: StringInstructions for the summarizer session.
summary_options: GenerationOptionsOptions used for summary generation.
chars_per_token: usizeEstimated characters per token.
Trait Implementations§
Source§impl Clone for CompactionConfig
impl Clone for CompactionConfig
Source§fn clone(&self) -> CompactionConfig
fn clone(&self) -> CompactionConfig
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 CompactionConfig
impl Debug for CompactionConfig
Auto Trait Implementations§
impl Freeze for CompactionConfig
impl RefUnwindSafe for CompactionConfig
impl Send for CompactionConfig
impl Sync for CompactionConfig
impl Unpin for CompactionConfig
impl UnwindSafe for CompactionConfig
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