共用方式為


QnAMaker.OnQnaResultsAsync 方法

定義

從 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

參數

queryResults
QueryResult[]

QueryResult 的陣列。

turnContext
ITurnContext

TurnContext

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄到遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

CancellationToken

傳回

工作,表示要執行的工作。

適用於