Skip to main content

parse_intent

Function parse_intent 

Source
pub fn parse_intent(reply: &str) -> Option<CommandIntent>
Expand description

Parse the classifier’s JSON reply into a validated intent. The command must exist in the catalog (case-insensitive), else None — the model can never invent a command.