在中,我似乎无法成功地发送切换请求。在单击"Start bot“时,我得到了错误错误: Dialog.onComputeId():not。完全错误日志:
Error occurred building the bot
Error: Dialog.onComputeId(): not implemented.
at SendHandoffActivity.onComputeId (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs\lib\dialog.js:336:15)
at SendHandoffActivity.get id [as id] (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs\lib\dialog.js:133:29)
at C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs-adaptive\lib\actions\actionScope.js:276:57
at Array.map (<anonymous>)
at ActionScope.onComputeId (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs-adaptive\lib\actions\actionScope.js:276:34)
at ActionScope.get id [as id] (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs\lib\dialog.js:133:29)
at DialogSet.add (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs\lib\dialogSet.js:126:71)
at C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs-adaptive\lib\adaptiveDialog.js:140:75
at Array.forEach (<anonymous>)
at AdaptiveDialog.ensureDependenciesInstalled (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs-adaptive\lib\adaptiveDialog.js:140:43)bot是一个空的机器人,具有“未知意图”中的“发送切换请求”。完整的机器人代码:
{
"$kind": "Microsoft.AdaptiveDialog",
"$designer": {
"name": "Handoff",
"description": "",
"id": "A79tBe"
},
"autoEndDialog": true,
"defaultResultProperty": "dialog.result",
"triggers": [
{
"$kind": "Microsoft.OnConversationUpdateActivity",
"$designer": {
"id": "376720"
},
"actions": [
{
"$kind": "Microsoft.Foreach",
"$designer": {
"id": "518944",
"name": "Loop: for each item"
},
"itemsProperty": "turn.Activity.membersAdded",
"actions": [
{
"$kind": "Microsoft.IfCondition",
"$designer": {
"id": "641773",
"name": "Branch: if/else"
},
"condition": "=string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)",
"actions": [
{
"$kind": "Microsoft.SendActivity",
"$designer": {
"id": "859266",
"name": "Send a response"
},
"activity": "${SendActivity_Greeting()}"
}
]
}
]
}
]
},
{
"$kind": "Microsoft.OnUnknownIntent",
"$designer": {
"id": "mb2n1u"
},
"actions": [
{
"$kind": "Microsoft.SendHandoffActivity",
"$designer": {
"id": "74xAHm"
},
"context": {
"context": "c"
},
"transcript": {
"transcript": "t"
}
}
]
}
],
"generator": "Handoff.lg",
"id": "Handoff",
"recognizer": "Handoff.lu.qna"
}我没有在Google/Stack溢出上找到任何东西。任何帮助都将不胜感激。
发布于 2022-09-14 17:29:25
https://stackoverflow.com/questions/73636177
复制相似问题