.net - Microsoft Bot Framework 中的对话框和对话有什么区别?

标签 .net bots botframework azure-language-understanding

对我个人而言,对话和对话是同一件事。然而,框架区分了这两个术语,我不太明白其中的区别。而且我在文档中找不到准确的、可理解的定义。

最佳答案

C# Dialogs documentation 的概述很好地解释了这些概念:

Dialogs model a conversational process, where the exchange of messages between bot and user is the primary channel for interaction with the outside world. Each dialog is an abstraction that encapsulates its own state in a C# class that implements IDialog. Dialogs can be composed with other dialogs to maximize reuse, and a dialog context maintains a stack of dialogs active in the conversation. A conversation composed of dialogs is portable across machines to make it possible to scale a bot implementation. This conversation state (the stack of active dialogs and each dialog's state) is stored in the messages exchanged with the Bot Connector, making the bot implementation stateless between requests. (Much like a web application that does not store session state in the web server's memory.)

此外,来自Dialogs Node.js documentation :

To understand dialogs its easiest to think of them as the equivalent of routes for a website. All bots will have at least one root ‘/’ dialog just like all websites typically have at least one root ‘/’ route. When the framework receives a message from the user it will be routed to this root ‘/’ dialog for processing.

关于.net - Microsoft Bot Framework 中的对话框和对话有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38224048/

相关文章:

c++ - AutoclickerInGame - 为什么不工作?

c# - Microsoft Bot Framework Chain.While 示例

node.js - 如何在 Microsoft Bot Framework 上通过 ID 获取用户电子邮件?

c# - P/Invoke - 结构参数的简单添加

c# - DirectoryInfo.EnumerateDirectories 是否对项目进行排序?

c# - 如何检查一个 char 数组是否包含另一个 char 数组中的每个元素?

python - flask 工作 10-15 秒后关闭

node.js - 使用nodejs制作Slack机器人,Slack事件不起作用

c++ - 如何与 SQL Server 2008 建立稳定连接并使用 C++ 编写我的第一个 CRUD 操作

azure - Bot Framework - 产品的对话状态内存存储