Skip to main content

sanitize_summary

Function sanitize_summary 

Source
pub fn sanitize_summary(raw: &str) -> Option<String>
Expand description

Rich-content spec §1.2: the agent’s session summary as a single line — controls and bidi stripped, whitespace collapsed, capped at 90 characters. A summary that trips the jekt keyword list is dropped, not replaced: it is decoration, not something the user needs to be told is hidden.