Skip to main content

SlotType

Stentor API Reference


Stentor API Reference / stentor-models/src / SlotType

Interface: SlotType\<T>

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

The values for the slot type.

Deprecated​

Use Entity instead

Type Parameters​

T​

T = string | number | object | boolean

Properties​

name​

name: string

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

The name of the slot type.

This is also the key used in the SlotTypeMap.


id?​

optional id: string

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

Optional ID for the slot type


values?​

optional values: SlotTypeValue\<T>[]

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

The values for the slot type.


dialogflowId?​

optional dialogflowId: string

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

Optional ID if the slot type has a representation in Dialogflow.