Skip to main content

matchUtteranceToSlotTypeValue

Stentor API Reference


Stentor API Reference / stentor-utils/src / matchUtteranceToSlotTypeValue

Function: matchUtteranceToSlotTypeValue()

matchUtteranceToSlotTypeValue<T>(utterance, slotTypeValues): MatchResult<T>[]

Defined in: packages/stentor-utils/src/matcher.ts:166

Matches the utterance to the slot type.

Type Parameters​

T​

T

Parameters​

utterance​

string | number

slotTypeValues​

SlotTypeValue<T>[]

Returns​

MatchResult<T>[]