Function truncate_bootstrap_content
pub fn truncate_bootstrap_content(
content: &str,
max_chars: usize,
) -> (&str, Option<BootstrapTruncation>)Expand description
Trim and cap content exactly as prompt injection does. Returns the text
that would be injected and, when the cap applied, the counts.