Skip to main content

SlotTypeValue

Stentor API Reference


Stentor API Reference / stentor-models/src / SlotTypeValue

Interface: SlotTypeValue\<T>

Defined in: packages/stentor-models/src/Slot/SlotType.ts:38

A single utterance within the slot type and associated data for when that utterance is spoken.

Type Parameters​

T​

T = string | number | object | boolean

Properties​

name​

name: string

Defined in: packages/stentor-models/src/Slot/SlotType.ts:42

The name of the slot, what is spoken by the user.


synonyms?​

optional synonyms: string[]

Defined in: packages/stentor-models/src/Slot/SlotType.ts:46

List of potential synonyms for the slot.


data?​

optional data: T

Defined in: packages/stentor-models/src/Slot/SlotType.ts:50

The data associated with the slot value, used when the slot value is selected.