Skip to main content

generate_summary

Function generate_summary 

Source
pub fn generate_summary(messages: &[Message]) -> Result<String, SummarizeError>
Expand description

Generates a summary for a set of session messages using the configured LLM provider.

This is the main entry point for summary generation. It:

  1. Resolves the provider configuration
  2. Prepares the conversation transcript from messages
  3. Calls the LLM API to generate a summary

Returns EmptySession if there are no messages or all messages are empty. Returns NotConfigured if no provider is set up.