我正在尝试使用Microsoft bot框架构建一个luis ai bot。是否有可能让用户处于意图中?
前:
internal static IDialog<Order> MakeRootDialog()
{
return Chain.From(() => FormDialog.FromForm(Order.BuildForm));
}
[LuisIntent("SWO")]
public async Task StartWo(IDialogContext context, LuisResult result)
{
if (no == 0)
{
Message message = new Message();
await Conversation.SendAsync(message, MakeRootDialog );
}
else
{
string message = "starting work ";
await context.PostAsync(message);
context.Wait(MessageReceived);
}
}
答案 0 :(得分:0)
如果您需要用户对意图的整个问题/查询,那么您将从[LuisIntent("SWO")]
public async Task StartWo(IDialogContext context, LuisResult result)
{
string userText = result.Query;
}
课程进入。
ex:std::transform(vec.begin(), vec.end(), vec.begin(), std::ref(*format));