pub struct EventsCompactionConfig {
pub compaction_interval: u32,
pub overlap_size: u32,
pub summarizer: Arc<dyn BaseEventsSummarizer>,
}Expand description
Core traits and types.
Always available regardless of feature flags. Includes:
Agent- The fundamental trait for all agentsTool/Toolset- For extending agents with capabilitiesSession/State- For managing conversation contextEvent- For streaming agent responsesAdkError/Result- Unified error handling 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§
Source§impl Clone for EventsCompactionConfig
impl Clone for EventsCompactionConfig
Source§fn clone(&self) -> EventsCompactionConfig
fn clone(&self) -> EventsCompactionConfig
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 moreAuto Trait Implementations§
impl Freeze for EventsCompactionConfig
impl !RefUnwindSafe for EventsCompactionConfig
impl Send for EventsCompactionConfig
impl Sync for EventsCompactionConfig
impl Unpin for EventsCompactionConfig
impl UnsafeUnpin for EventsCompactionConfig
impl !UnwindSafe for EventsCompactionConfig
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