Skip to main content

classify_intent

Function classify_intent 

Source
pub async fn classify_intent(query: &str, api_url: &str) -> IntentClass
Expand description

Classify user query intent using embedding similarity against labeled centroids.

Only called when the keyword router has already returned host_inspection_mode = true, so this is a veto path, not the primary routing path. Returning Ambiguous is always safe — it just falls through to existing behavior.