Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RecognizerFilter

Wraps a recognizer with a filter that lets you conditionally enable/disable the recognizer or filter the intents returned from the recognizer. This can be composed with an IntentRecognizerSet to conditionally enable or filter the output of an entire set of recognizers.

Hierarchy

  • RecognizerFilter

Implements

Index

Constructors

constructor

Methods

onEnabled

  • Registers a function to conditionally enable/disable the wrapped recognizer.

    Parameters

    • handler: function

      Function called for every message. You should call callback(null, true) for every message that should be passed to the wrapped recognizer.

        • Parameters

          • context: IRecognizeContext
          • callback: function
              • (err: Error, enabled: boolean): void
              • Parameters

                • err: Error
                • enabled: boolean

                Returns void

          Returns void

    Returns RecognizerFilter

onRecognized

recognize

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method