IPromptRecognizeValuesOptions interface

Properties

allowPartialMatches

(Optional) if true, then only some of the tokens in a value need to exist to be considered a match. The default value is "false".

maxTokenDistance

(Optional) maximum tokens allowed between two matched tokens in the utterance. So with a max distance of 2 the value "second last" would match the utterance "second from the last" but it wouldn't match "Wait a second. That's not the last one is it?". The default value is "2".

Property Details

allowPartialMatches

(Optional) if true, then only some of the tokens in a value need to exist to be considered a match. The default value is "false".

allowPartialMatches?: boolean

Property Value

boolean

maxTokenDistance

(Optional) maximum tokens allowed between two matched tokens in the utterance. So with a max distance of 2 the value "second last" would match the utterance "second from the last" but it wouldn't match "Wait a second. That's not the last one is it?". The default value is "2".

maxTokenDistance?: number

Property Value

number