pub type SaveHook = Box<dyn Fn(&[ChatHistoryEntry]) + Send + 'static>;
Called after StreamComplete to persist the current history.
StreamComplete
pub struct SaveHook(/* private fields */);