ITelemetryRecognizer.RecognizeAsync Method

Definition

Overloads

RecognizeAsync(ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

Return results of the analysis (suggested intents and entities) using the turn context.

RecognizeAsync<T>(ITurnContext, CancellationToken)

Runs an utterance through a recognizer and returns a strongly-typed recognizer result.

RecognizeAsync<T>(ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

Runs an utterance through a recognizer and returns a strongly-typed recognizer result.

RecognizeAsync(ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

Return results of the analysis (suggested intents and entities) using the turn context.

public System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.ITurnContext turnContext, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Function RecognizeAsync (turnContext As ITurnContext, telemetryProperties As Dictionary(Of String, String), telemetryMetrics As Dictionary(Of String, Double), Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizerResult)

Parameters

turnContext
ITurnContext

Context object containing information for a single turn of conversation with a user.

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

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<RecognizerResult>

The LUIS results of the analysis of the current message text in the current turn's context activity.

Applies to

RecognizeAsync<T>(ITurnContext, CancellationToken)

Runs an utterance through a recognizer and returns a strongly-typed recognizer result.

public System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.ITurnContext turnContext, System.Threading.CancellationToken cancellationToken = default) where T : Microsoft.Bot.Builder.IRecognizerConvertnew();
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (turnContext As ITurnContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

Type Parameters

T

The recognition result type.

Parameters

turnContext
ITurnContext

Turn context.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<T>

Analysis of utterance.

Implements

Applies to

RecognizeAsync<T>(ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

Runs an utterance through a recognizer and returns a strongly-typed recognizer result.

public System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.ITurnContext turnContext, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics, System.Threading.CancellationToken cancellationToken = default) where T : Microsoft.Bot.Builder.IRecognizerConvertnew();
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (turnContext As ITurnContext, telemetryProperties As Dictionary(Of String, String), telemetryMetrics As Dictionary(Of String, Double), Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

Type Parameters

T

The recognition result type.

Parameters

turnContext
ITurnContext

Turn context.

telemetryProperties
Dictionary<String,String>

Dictionary containing additional properties to be attached to the outgoing telemetry item.

telemetryMetrics
Dictionary<String,Double>

Dictionary containing additional metrics to be attached to the outgoing telemetry item.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<T>

Analysis of utterance.

Applies to