对我个人而言,对话和对话是同一件事。然而,框架区分了这两个术语,我不太明白其中的区别。而且我在文档中找不到准确的、可理解的定义。
最佳答案
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/