QnAMaker.FillQnAEventAsync Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vyplní vlastnosti události a metriky pro událost QnaMessage pro telemetrii. Tyto vlastnosti se protokolují při zavolání metody 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)))
Parametry
- queryResults
- QueryResult[]
Výsledky služby QnA.
- turnContext
- ITurnContext
Kontextový objekt obsahující informace pro jednu konverzaci s uživatelem.
- telemetryProperties
- Dictionary<String,String>
Vlastnosti, které se mají přidat nebo přepsat pro událost.
- telemetryMetrics
- Dictionary<String,Double>
Metriky pro přidání nebo přepsání události
- cancellationToken
- CancellationToken
Token zrušení, který může být použit jinými objekty nebo vlákny k přijetí oznámení o zrušení.
Návraty
Kolekce členů vlastnosti a metriky, která se odešle do metody IBotTelemetryClient.TrackEvent pro událost QnAMessage. Vlastnosti a metriky vrátily standardní vlastnosti protokolované se všemi vlastnostmi předanými metodou GetAnswersAsync.