llm_chain::summarization

Function summarize_text

Source
pub async fn summarize_text<E: Executor>(
    exec: &E,
    text: &str,
) -> Result<String, TextSummarizerError>
Expand description

A convenience function to summarize text using the provided Executor.

Returns the summarized text, or an error if the summarization process fails.