pub fn truncate_tool_output(output: &str) -> StringExpand description
Truncate tool output that exceeds MAX_TOOL_OUTPUT_CHARS using a head+tail split.
Equivalent to truncate_tool_output_at(output, MAX_TOOL_OUTPUT_CHARS).
ยงExample
use zeph_tools::executor::truncate_tool_output;
let short = "hello world";
assert_eq!(truncate_tool_output(short), short);