pub struct EventsCompactionConfig {
pub compaction_interval: u32,
pub overlap_size: u32,
pub summarizer: Arc<dyn BaseEventsSummarizer>,
}Expand description
Configuration for automatic context compaction.
Mirrors ADK Python’s EventsCompactionConfig:
compaction_interval: Number of invocations before triggering compactionoverlap_size: Events from the previous window to include in the next summarysummarizer: The strategy used to produce summaries
Fields§
§compaction_interval: u32Number of completed invocations that triggers compaction.
overlap_size: u32How many events from the previous compacted window to include in the next compaction for continuity.
summarizer: Arc<dyn BaseEventsSummarizer>The summarizer implementation (e.g., LLM-based).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EventsCompactionConfig
impl !UnwindSafe for EventsCompactionConfig
impl Forget for EventsCompactionConfig
impl Freeze for EventsCompactionConfigwhere
*const ArcInner<dyn BaseEventsSummarizer> is !null: Freeze,
PhantomData<ArcInner<dyn BaseEventsSummarizer>>: Freeze,
impl Move for EventsCompactionConfig
impl Send for EventsCompactionConfig
impl Sync for EventsCompactionConfig
impl Unpin for EventsCompactionConfig
impl UnsafeUnpin for EventsCompactionConfigwhere
*const ArcInner<dyn BaseEventsSummarizer> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn BaseEventsSummarizer>>: UnsafeUnpin,
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