pub async fn compact_history_manual(
provider: &dyn LLMProvider,
model: &str,
history: &[Message],
config: &CompactionConfig,
options: &ManualCompactionOptions,
) -> Result<(Vec<Message>, CompactionMode)>Expand description
Compact history for the manual /compact command using provider-native
compaction when available, falling back to local summarization otherwise.
Returns the compacted messages and the CompactionMode that produced them
(Provider for native compaction, Local for client-side summarization).