Skip to main content

compress_tool_result

Function compress_tool_result 

Source
pub fn compress_tool_result(content: &str, tool_name: Option<&str>) -> String
Expand description

Proxy compression: delegates to the unified compress_if_beneficial pipeline.

For shell-like tool results, we attempt to extract a command hint from $ ... prefixes so the pattern engine gets the same routing as CLI and MCP paths.