IPromptRecognizeChoicesOptions interface

Extends

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".

excludeAction

(Optional) If true, the choices action will NOT be recognized over.

excludeValue

(Optional) If true, the choices value will NOT be recognized over.

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

excludeAction

(Optional) If true, the choices action will NOT be recognized over.

excludeAction?: boolean

Property Value

boolean

excludeValue

(Optional) If true, the choices value will NOT be recognized over.

excludeValue?: 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