pub async fn compact(
preparation: &CompactionPreparation,
options: &CompactOptions<'_>,
call: impl AsyncFnMut(SummaryRequest) -> AssistantMessage,
) -> Result<CompactionResult, String>Expand description
compact: summarizes a prepared compaction through call (history, then the split turn’s prefix when cutting
mid-turn) and appends the file lists.