Skip to main content

truncate_str

Function truncate_str 

Source
pub fn truncate_str(s: &str, max: usize) -> &str
Expand description

Re-export truncate_str from agent-core. Truncate a string to at most max bytes at a valid UTF-8 boundary.