【发布时间】:2020-07-17 02:04:24
【问题描述】:
我在尝试将示例技能连接到示例虚拟助手时遇到多个错误。两者都在打字稿中并且可以自行正确运行,但是当我运行botskills connect 时遇到以下错误:
我首先使用 --localManifest 参数 (-l) 运行 botskills 连接:
botskills connect -l "C:\VA\latest-skill\src\manifest\manifest-1.1.json" --ts
这会返回一个错误,说明要包含 Luis 文件夹的路径:
Updating Dispatch
Adding skill to Dispatch
node.exe : There was an error while connecting the Skill to the Assistant:
At C:\npm\botskills.ps1:15 char:3
+ & "node$exe" "$basedir/node_modules/botskills/lib/botskills.js" $a ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (There was an er... the Assistant::String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Error: An error ocurred while updating the Dispatch model:
Error: Path to the LUIS folder (C:\VA\latest-assistant\Deployment\Resources\Skills) leads to a nonexistent folder.
Remember to use the argument '--luisFolder' for your Skill's LUIS folder.
然后我尝试包含 --luisFolder 参数,但使用 --dispatchFolder 参数时出错:
Updating Dispatch
Adding skill to Dispatch
node.exe : There was an error while connecting the Skill to the Assistant:
At C:\npm\botskills.ps1:15 char:3
+ & "node$exe" "$basedir/node_modules/botskills/lib/botskills.js" $a ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (There was an er... the Assistant::String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Error: An error ocurred while updating the Dispatch model:
Error: Path to the Dispatch folder (C:\VA\latest-assistant\Deployment\Resources\Dispatch\en-us) leads to a nonexistent folder.
Remember to use the argument '--dispatchFolder' for your Assistant's Dispatch folder.
Typescript 生成的示例技能代码中没有这样的文件夹 - 这是文件夹结构的样子:
这是我目前卡住的地方。可以手动创建调度文件夹吗?这个参数还有其他方法吗?任何进一步的指导将不胜感激,谢谢。
【问题讨论】:
标签: typescript azure botframework