pub fn microcompact(messages: &mut [Message], keep_recent: usize) -> u64Expand description
Perform microcompact: clear stale tool results to free tokens.
Replaces the content of old tool_result blocks with a placeholder,
keeping the most recent keep_recent results intact.