Skip to main content

summarize_tool_result

Function summarize_tool_result 

Source
pub fn summarize_tool_result(
    tool_name: &str,
    output: Option<&str>,
    error: Option<&str>,
) -> String
Expand description

Create a concise 1-2 line summary of a tool result for LLM context.

This prevents context bloat while maintaining semantic meaning. Summaries are typically 50-200 chars.