pub async fn compact_history(
provider: &dyn LLMProvider,
model: &str,
history: &[Message],
config: &CompactionConfig,
) -> Result<Vec<Message>>Expand description
Compact conversation history using the configured summarizer.
pub async fn compact_history(
provider: &dyn LLMProvider,
model: &str,
history: &[Message],
config: &CompactionConfig,
) -> Result<Vec<Message>>Compact conversation history using the configured summarizer.