pub fn apply_all(messages: &mut Vec<Message>) -> ExperimentalStatsExpand description
Apply the default-safe experimental strategies in order, mutating
messages in place. Returns aggregate statistics suitable for
logging.
Order matters:
dedup::dedup_tool_outputsruns before text cleanup so repeated tool outputs collapse against the original bytes.lingua::prune_low_entropyruns after that to strip formatting noise from older assistant text without touching semantics.
ยงExamples
use codetether_agent::provider::{ContentPart, Message, Role};
use codetether_agent::session::helper::experimental::apply_all;
let mut msgs: Vec<Message> = Vec::new();
let stats = apply_all(&mut msgs);
assert_eq!(stats.total_bytes_saved, 0);