Skip to main content

summarize

Function summarize 

Source
pub fn summarize(
    full: &str,
    archive_id: &str,
    tool: &str,
    output_tokens: usize,
) -> String
Expand description

Build the inline digest that replaces a firewalled output. Deterministic (no LLM): a head/tail excerpt for multi-line output, or a char-bounded excerpt for output with few but very long lines (e.g. a single giant JSON line), followed by drilldown instructions keyed on archive_id.