Skip to main content

PreCompactHandlerFn

Type Alias PreCompactHandlerFn 

Source
pub type PreCompactHandlerFn = Box<dyn Fn(Vec<ApiMessage>) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;
Expand description

Type alias for the pre-compaction handler.

Called just before conversation messages are compacted (summarized). Receives the messages about to be discarded, allowing the host to extract and persist important information before it’s lost.

Aliased Type§

pub struct PreCompactHandlerFn(/* private fields */);