Skip to main content

strip_conversational_preamble

Function strip_conversational_preamble 

Source
fn strip_conversational_preamble(s: &str) -> Option<String>
Expand description

Strip one leading conversational-filler opener (see CONVERSATIONAL_PREAMBLES) and re-capitalize the new first letter, so “Yeah, let’s debug the bug” becomes “Debug the bug” — matching the direct-instruction register every ambient-call prompt asks for. Returns None if no known opener matches (left alone rather than guessed at — this list is deliberately not exhaustive NLP-style filler detection, just the handful of openers a model actually reaches for here).