SlotValue
type SlotValue<T> = { aliases?: string[]; text: string; value: T;};Defined in: core/src/nlp/utterance/utterance.slot.ts:13
One value a Slot can take: the value handed back to the action, and
the surface forms a speaker might use to refer to it.
value is deliberately the provider’s own object rather than a string. A slot
exists so a matched phrase can be turned into action input, and action input
wants ids — resolving "the kitchen" back to a room only to look the room up
again would be the same join done twice.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Properties
Section titled “Properties”aliases?
Section titled “aliases?”optional aliases?: string[];Defined in: core/src/nlp/utterance/utterance.slot.ts:16
text: string;Defined in: core/src/nlp/utterance/utterance.slot.ts:15
value: T;Defined in: core/src/nlp/utterance/utterance.slot.ts:14