gpt4 book ai didi

botframework - PromptDialog.Choice 不显示选项

转载 作者:行者123 更新时间:2023-12-04 04:15:34 24 4
gpt4 key购买 nike

我正在寻找如何使用 IDialog<object> 向用户显示选择和 PromtDialog.Choice方法。但是下面的代码示例没有显示选择。很难找到代码示例。寻求帮助。谢谢。

 List<string> BotOptions = new List<string>();
BotOptions.Add("Find a Program");
BotOptions.Add("Find an Event");
PromptDialog.Choice(context,
ChoiceSelectAsync,BotOptions,
"I didn't understand you. I'm cable to help you with",
"Didn't get that",
1,
PromptStyle.None);

最佳答案

您需要将 PromptStyle 更改为 None 以外的任何内容。

可用的选项有:

Auto
Generate buttons for choices and let connector generate the right style based on channel capabilities

AutoText
Show choices as Text. The prompt decides if it should generate the text inline or perline based on number of choices.

Inline
Show choices on the same line.

PerLine
Show choices with one per line.

None
Do not show possible choices in the prompt

source

关于botframework - PromptDialog.Choice 不显示选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38072037/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com