The recognizer result containing intents and their scores
Returns {intent:string;score:number}
An object containing the top-scoring intent name and its confidence score
Throws
Throws an error if the result is empty or doesn't contain intents
Remarks
This function iterates through all intents in the recognizer result and returns
the intent name and score for the intent with the highest confidence score.
If multiple intents have the same highest score, the last one encountered is returned.
Finds the intent with the highest confidence score from a recognizer result.