QnAMaker.OnQnaResultsAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Wordt uitgevoerd wanneer een resultaat wordt geretourneerd vanuit QnA Maker.
protected virtual System.Threading.Tasks.Task OnQnaResultsAsync(Microsoft.Bot.Builder.AI.QnA.QueryResult[] queryResults, Microsoft.Bot.Builder.ITurnContext turnContext, System.Collections.Generic.Dictionary<string,string> telemetryProperties = default, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default);
abstract member OnQnaResultsAsync : Microsoft.Bot.Builder.AI.QnA.QueryResult[] * Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnQnaResultsAsync : Microsoft.Bot.Builder.AI.QnA.QueryResult[] * Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnQnaResultsAsync (queryResults As QueryResult(), turnContext As ITurnContext, Optional telemetryProperties As Dictionary(Of String, String) = Nothing, Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- queryResults
- QueryResult[]
Een matrix van QueryResult.
- turnContext
- ITurnContext
De TurnContext.
- telemetryProperties
- Dictionary<String,String>
Aanvullende eigenschappen die moeten worden vastgelegd in telemetrie met de gebeurtenis LuisResult.
- telemetryMetrics
- Dictionary<String,Double>
Aanvullende metrische gegevens die moeten worden vastgelegd in telemetrie met de gebeurtenis LuisResult.
- cancellationToken
- CancellationToken
Een CancellationToken.
Retouren
Een taak die het werk vertegenwoordigt dat moet worden uitgevoerd.