Skip to main content

SaveHook

Type Alias SaveHook 

Source
pub type SaveHook = Box<dyn Fn(&[ChatHistoryEntry]) + Send + 'static>;
Expand description

Called after StreamComplete to persist the current history.

Aliased Typeยง

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