pub fn keep(
stack: &Arc<Stack>,
agent_dir: &Path,
keep: Keep,
ask: impl FnOnce(&str, &str) -> Result<String, String> + Send + 'static,
wait: Duration,
) -> Option<Outcome>Expand description
Distils and stores keep on a thread, waiting at most wait for its outcome; past wait the work is aborted
(nothing is written after that) and the outcome is TIMEOUT. Every outcome but Unchanged is logged under
agent_dir. None when the session has no memory service (nothing is kept, nothing logged).