make admin compact requests cancellable as well

This commit is contained in:
Chris Beck
2025-12-14 12:11:43 -07:00
parent e9daba0d7c
commit 4a1b1ecafb
3 changed files with 34 additions and 9 deletions
+3 -1
View File
@@ -25,7 +25,9 @@ pub trait Assistant: Send {
///
/// This is called when the user explicitly requests compaction.
/// Automatic compaction is an internal implementation detail.
async fn compact(&mut self);
///
/// The cancellation token can be used to interrupt the operation.
async fn compact(&mut self, cancel: CancellationToken);
/// Log the assistant's current state for debugging.
fn debug_log(&mut self);