Skip to main content

compact_history

Function compact_history 

Source
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.