简体   繁体   English

如何从bot框架的botbuilder(JavaScript)获取当前对话框堆栈?

[英]How to get the current dialog stack from the bot framework's botbuilder (JavaScript)?

I am building a chat bot with BotBuilder (Node version). 我正在使用BotBuilder(节点版本)构建聊天机器人。 I wish to print out the dialog stack for debug purpose. 我希望打印出对话框堆栈以进行调试。 Is it possible to do that? 有可能这样做吗?

I found the answer to my own question. 我找到了自己问题的答案。

After research on the source code, I found that we can print the call stack of a session by: 在研究源代码之后,我发现我们可以通过以下方式打印会话的调用堆栈:

console.log(session.dialogStack());
// or
console.log(session.sessionState.callstack);

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Bot Framework botbuilder 开始并得到断言错误 - Starting with Bot Framework botbuilder and get an Assertion Error 如何从Bot框架对话框中的提示获取结果 - How to get results from Prompt in Bot Framework Dialog 如何在v4节点SDK BOT上保持对话框堆栈 - How to get a hold of dialog stack on v4 node SDK BOT 如何在Microsoft团队中添加Microsoft BotBuilder框架Node.js版本4 Bot? - How to add the microsoft botbuilder framework node.js version 4 bot in microsoft teams? 本地主机上的Botbuilder机器人未响应,但可在Azure中使用 - No response from Botbuilder bot on localhost, but works in Azure 如何使用适用于node.js的botbuilder SDK V4为我的机器人添加提示的maxRetries - How to add a prompt's maxRetries for my bot using botbuilder SDK V4 for node.js 如何使用Skype for Business从botbuilder获取用户电子邮件? - How to get user email from botbuilder with Skype for Business? BotBuilder for Node.js v3和Microsoft Bot Framework:如何远程触发与用户的新对话的开始? - BotBuilder for Node.js v3 & Microsoft Bot Framework: How do I remotely trigger the start of a new conversation with a user? 如何在Bot框架中添加其他对话框 - How to add additional dialog in bot framework Microsoft BotBuilder node.js:如何从 Bot 向 Android Skype for business 客户端发送格式化文本(BOLD、Italic、New Line) - Microsoft BotBuilder node.js : How to send formatted text (BOLD , Italic , New Line ) to Android Skype for business client from Bot
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM