QnAMaker.FillQnAEventAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
テレメトリの QnaMessage イベントのイベント プロパティとメトリックを入力します。 これらのプロパティは、QnA GetAnswers メソッドが呼び出されたときにログに記録されます。
protected System.Threading.Tasks.Task<(System.Collections.Generic.Dictionary<string,string> Properties, System.Collections.Generic.Dictionary<string,double> Metrics)> FillQnAEventAsync(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);
member this.FillQnAEventAsync : 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<ValueTuple<System.Collections.Generic.Dictionary<string, string>, System.Collections.Generic.Dictionary<string, double>>>
Protected Function FillQnAEventAsync (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(Of ValueTuple(Of Dictionary(Of String, String), Dictionary(Of String, Double)))
パラメーター
- queryResults
- QueryResult[]
QnA サービスの結果。
- turnContext
- ITurnContext
ユーザーとの会話の単一ターンの情報を含むコンテキスト オブジェクト。
- telemetryProperties
- Dictionary<String,String>
イベントの追加/オーバーライドを行うプロパティ。
- telemetryMetrics
- Dictionary<String,Double>
イベントの追加/オーバーライドを行うメトリック。
- cancellationToken
- CancellationToken
キャンセル通知を受け取るために他のオブジェクトまたはスレッドで使用できるキャンセル トークン。
戻り値
QnAMessage イベントの IBotTelemetryClient.TrackEvent メソッドに送信される Properties と Metrics のタプル。 プロパティとメトリックは、GetAnswersAsync メソッドから渡されたプロパティと共にログに記録された標準プロパティを返しました。