Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ValueControlIntent

ValueControlIntent is an intent that can carry multiple values for one value-type.

  • For example an utterance like "Plan a trip to go hiking, camping, and fishing" all three values 'hiking, camping, fishing' can be captured using a multiple-value slot like activity.

Every sample utterance for a ValueControlIntent includes the value slot. Utterances that do not include a value slot are handled by GeneralControlIntent.

Limitations

Hierarchy

Constructors

constructor

  • new ValueControlIntent(valueSlotType: string, filteredValueSlotType?: undefined | string): ValueControlIntent
  • Constructor.

    Parameters

    • valueSlotType: string

      SlotType that defines all legal values.

    • Optional filteredValueSlotType: undefined | string

      SlotType that defines legal values except those that conflict with other intents. Defaults to valueSlotType.

    Returns ValueControlIntent

Properties

filteredValueSlotType

filteredValueSlotType: string

name

name: string = this.constructor.name

Name of the intent as it will appear in the interaction model.

Default: the class name.

valueSlotType

valueSlotType: string

Methods

generateIntent

  • generateIntent(): Intent

Static intentName

  • intentName(slotTypeId: string): string
  • Generates the intent name of a specialized ValueControlIntent.

    Example:

    • The intent name for a ValueControlIntent that conveys an AMAZON.NUMBER is AMAZON_NUMBER_ValueControlIntent.

    Parameters

    • slotTypeId: string

      Specific slot type id.

    Returns string

Static of

  • Create Intent from specification of the slots

    Parameters

    Returns Intent