Documentation - v1.2.0-alpha.3
    Preparing search index...

    Base class for implementing custom recognizers to identify intents and entities from user input.

    Recognizers process user input, such as text or speech, and return structured data representing the recognized intents, entities, and other relevant information. This class provides a foundation for creating custom recognizers by defining common methods and properties.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    id?: string

    Optional. The unique identifier for the recognizer.

    Methods

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

      Parameters

      • recognizerResult: RecognizerResult

        Recognizer Result.

      • telemetryProperties: Record<string, string>

        A list of properties to append or override the properties created using the RecognizerResult.

      • Optional_dialogContext: DialogContext

        Dialog Context.

      Returns Record<string, string>

      A collection of properties that can be included when calling the TrackEvent method on the TelemetryClient.

    • To recognize intents and entities in a users utterance.

      Parameters

      • _dialogContext: DialogContext

        Dialog Context.

      • _activity: Partial<Activity>

        Activity.

      • Optional_telemetryProperties: Record<string, string>

        Additional properties to be logged to telemetry with event.

      • Optional_telemetryMetrics: Record<string, number>

        Additional metrics to be logged to telemetry with event.

      Returns Promise<RecognizerResult>