Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IntentBuilder

Utility to construct intent objects for testing.

Hierarchy

  • IntentBuilder

Methods

Methods

Static of

  • of(name: string, slotValues?: undefined | object): Intent
  • Create an Intent object from a name and a set of slot values.

    • Multi-value slots can be provided as an array of values.

    Parameters

    • name: string

      Intent name

    • Optional slotValues: undefined | object

      Slot value map

    Returns Intent