CustomQuestionAnswering.OnQnaResultsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executed when a result is returned from Custom Question Answering.
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[]
An array of QueryResult.
- turnContext
- ITurnContext
The TurnContext that contains the user question to be queried against your knowledge base.
- telemetryProperties
- Dictionary<String,String>
Additional properties to be logged to telemetry with the LuisResult event.
- telemetryMetrics
- Dictionary<String,Double>
Additional metrics to be logged to telemetry with the LuisResult event.
- cancellationToken
- CancellationToken
Returns
A Task representing the work to be executed.