Skip to main content

truncate_diff_if_large

Function truncate_diff_if_large 

Source
pub fn truncate_diff_if_large(diff: &str, max_size: usize) -> String
Expand description

Truncate diff if it’s too large for agents with small context windows.