matchRequestSlotToSlotTypeValue
Stentor API Reference / stentor-utils/src / matchRequestSlotToSlotTypeValue
Function: matchRequestSlotToSlotTypeValue()
matchRequestSlotToSlotTypeValue\<
T>(slot,slotTypeValues):SlotTypeValue\<T>
Defined in: packages/stentor-utils/src/matcher.ts:212
Match the request slot to the provided slot type values.
Both synonym and value are used, whichever has the highest score is returned.
Type Parametersβ
Tβ
T
Parametersβ
slotβ
slotTypeValuesβ
SlotTypeValue\<T>[]
Returnsβ
SlotTypeValue\<T>