通过


IPromptChoiceFeatures interface

PromptChoice 类的可选功能。

扩展

属性

defaultListStyle

(可选)在调用方指定 ListStyle.auto 时用作默认值的样式,并确定不支持键盘。 默认值为“ListStyle.list”。

defaultRetryNamespace

要用于 defaultRetryPrompt的库命名空间。 如果未指定,将使用机器人的默认命名空间“*”。

defaultRetryPrompt

如果调用方未提供一个,则要发送的默认 retryPrompt。

disableRecognizer

如果为 true,则提示不应执行它自己的识别逻辑。 默认值为“false”。

inlineListCount

(可选)应用 listStyle.list defaultListStyle 时,要显示在内联列表中的项数。 默认值为“3”。 将此值设置为“0”以禁用内联模式。

minScore

(可选) 最低分数(0.0 - 1.0)需要识别的选择才能被视为匹配项。 默认值为“0.4”。

recognizeChoices

(可选)如果为 true,提示将尝试使用选项本身识别所选值。 默认值为“true”。

recognizeNumbers

(可选)如果为 true,则提示将尝试将用户话语中的数字识别为要返回的选择的索引。 默认值为“true”。

recognizeOrdinals

(可选)如果为 true,则提示将尝试识别序号(如“第一个”或“第二个”)作为要返回的选择的索引。 默认值为“true”。

属性详细信息

defaultListStyle

(可选)在调用方指定 ListStyle.auto 时用作默认值的样式,并确定不支持键盘。 默认值为“ListStyle.list”。

defaultListStyle?: ListStyle

属性值

defaultRetryNamespace

要用于 defaultRetryPrompt的库命名空间。 如果未指定,将使用机器人的默认命名空间“*”。

defaultRetryNamespace?: string

属性值

string

defaultRetryPrompt

如果调用方未提供一个,则要发送的默认 retryPrompt。

defaultRetryPrompt?: TextOrMessageType

属性值

disableRecognizer

如果为 true,则提示不应执行它自己的识别逻辑。 默认值为“false”。

disableRecognizer?: boolean

属性值

boolean

inlineListCount

(可选)应用 listStyle.list defaultListStyle 时,要显示在内联列表中的项数。 默认值为“3”。 将此值设置为“0”以禁用内联模式。

inlineListCount?: number

属性值

number

minScore

(可选) 最低分数(0.0 - 1.0)需要识别的选择才能被视为匹配项。 默认值为“0.4”。

minScore?: number

属性值

number

recognizeChoices

(可选)如果为 true,提示将尝试使用选项本身识别所选值。 默认值为“true”。

recognizeChoices?: boolean

属性值

boolean

recognizeNumbers

(可选)如果为 true,则提示将尝试将用户话语中的数字识别为要返回的选择的索引。 默认值为“true”。

recognizeNumbers?: boolean

属性值

boolean

recognizeOrdinals

(可选)如果为 true,则提示将尝试识别序号(如“第一个”或“第二个”)作为要返回的选择的索引。 默认值为“true”。

recognizeOrdinals?: boolean

属性值

boolean