Skip to main content

summarize

Function summarize 

Source
pub async fn summarize(
    raw: &str,
    topic: &str,
    api_url: &str,
    model: Option<&str>,
) -> Result<String, String>
Expand description

Summarize raw_output through the local model privacy filter.

Returns the semantically redacted summary, or Err if the local model is unavailable. Callers MUST treat Err as a hard block — do not fall back to raw output.