pub trait ToolOutputArchive: Send + Sync {
// Required method
fn archive<'a>(
&'a self,
to_compact: &'a [Message],
) -> Pin<Box<dyn Future<Output = Vec<String>> + Send + 'a>>;
}Expand description
Pre-summary tool-output archiving hook (Memex #2432).
The service calls archive(to_compact) BEFORE summarization. The returned reference
strings are appended as a postfix AFTER the LLM summary to prevent the LLM from
destroying the [archived:UUID] markers.