MockLuisRecognizer Class

Definition

Test class for creating cached LUIS responses for testing.

public class MockLuisRecognizer : Microsoft.Bot.Builder.Dialogs.Recognizer
type MockLuisRecognizer = class
    inherit Recognizer
Public Class MockLuisRecognizer
Inherits Recognizer
Inheritance
MockLuisRecognizer

Remarks

This will either use a cached LUIS response or generate a new one by calling LUIS.

Constructors

MockLuisRecognizer(LuisAdaptiveRecognizer, String, String)

Initializes a new instance of the MockLuisRecognizer class.

Fields

ChooseIntent

Intent name that will be produced by this recognizer if the child recognizers do not have consensus for intents.

(Inherited from Recognizer)
NoneIntent

Standard none intent that means none of the recognizers recognize the intent.

(Inherited from Recognizer)

Properties

Id

Gets or sets id of the recognizer.

(Inherited from Recognizer)
TelemetryClient

Gets or sets the currently configured IBotTelemetryClient that logs the RecognizerResult event.

(Inherited from Recognizer)

Methods

FillRecognizerResultTelemetryProperties(RecognizerResult, Dictionary<String,String>, DialogContext)

Uses the RecognizerResult to create a list of properties to be included when tracking the result in telemetry.

(Inherited from Recognizer)
RecognizeAsync(DialogContext, Activity, CancellationToken, Dictionary<String,String>, Dictionary<String,Double>)

Runs current DialogContext.TurnContext.Activity through a recognizer and returns a generic recognizer result.

RecognizeAsync<T>(DialogContext, Activity, CancellationToken, Dictionary<String,String>, Dictionary<String,Double>)

Runs current DialogContext.TurnContext.Activity through a recognizer and returns a strongly-typed recognizer result using IRecognizerConvert.

(Inherited from Recognizer)
TrackRecognizerResult(DialogContext, String, Dictionary<String,String>, Dictionary<String,Double>)

Tracks an event with the event name provided using the TelemetryClient attaching the properties / metrics.

(Inherited from Recognizer)

Applies to