Skip to main content

bounded_preview

Function bounded_preview 

Source
pub fn bounded_preview(s: &str, max_bytes: usize) -> String
Expand description

Bound a final result string for the UI event lane, appending a metadata-only truncation marker when anything was cut. UTF-8-safe and greedy via agent_core::BoundedText.