pub trait Compressor {
// Required methods
fn matches(&self, command: &str) -> bool;
fn compress(&self, command: &str, output: &str) -> String;
}Expand description
A Compressor knows how to reduce one specific command’s output to fewer
tokens while preserving the information the agent needs.