Skip to main content

TOOL_RESULT_PRUNE_CHARS

Constant TOOL_RESULT_PRUNE_CHARS 

Source
pub const TOOL_RESULT_PRUNE_CHARS: usize = 2_048;
Expand description

Cap for older tool results during compact (prune to ~2k chars). Recent tool dumps stay at TOOL_RESULT_MAX_CHARS so the model can still use the last step’s output; older steps shrink hard for TTFT.