LuisDialog<TResult>.BestIntentFrom(LuisResult) Method

Definition

Calculates the best scored IntentRecommendation from a LuisResult.

protected virtual Microsoft.Bot.Builder.Luis.Models.IntentRecommendation BestIntentFrom (Microsoft.Bot.Builder.Luis.Models.LuisResult result);
abstract member BestIntentFrom : Microsoft.Bot.Builder.Luis.Models.LuisResult -> Microsoft.Bot.Builder.Luis.Models.IntentRecommendation
override this.BestIntentFrom : Microsoft.Bot.Builder.Luis.Models.LuisResult -> Microsoft.Bot.Builder.Luis.Models.IntentRecommendation
Protected Overridable Function BestIntentFrom (result As LuisResult) As IntentRecommendation

Parameters

result
LuisResult

A result of a LUIS service call.

Returns

The best scored IntentRecommendation, or null if result doesn't contain any intents.

Applies to