Skip to main content

trim_with_summarization

Function trim_with_summarization 

Source
pub async fn trim_with_summarization(
    messages: Vec<Message>,
    strategy: &ContextStrategy,
    driver: Option<&dyn LlmDriver>,
) -> Vec<Message>
Expand description

Compatibility entry point for callers without host-owned eligibility metadata. Unknown content is protected by default, so summarizing strategies leave it unchanged.