pub fn parse_mention(prompt: &str) -> Option<Mention>Expand description
Parse the first @mention from a prompt.
A mention is @ followed by one or more slug characters ([a-z0-9_-],
starting with a letter). The mention may appear anywhere in the message
but is typically at the start (e.g. @researcher summarize the thread).
Returns None if no valid mention is found. A @ not followed by a
valid slug character is treated as literal text (not a mention).