gpt4 book ai didi

alexa-skills-kit - Alexa 意图插槽 AMAZON.LITERAL 导致构建失败

转载 作者:行者123 更新时间:2023-12-04 07:27:59 26 4
gpt4 key购买 nike

我正在尝试使用 AMAZON.LITERAL我的 Alexa 技能中的插槽类型,但是当我尝试构建时,我看到以下错误:

Build Failed
Slot name "{What}" is used in a sample utterance but not defined in the intent schema. Error code: UndefinedSlotName - Thursday, Apr 12, 2018, 2:08 PM

插槽名为 What ,我 100% 确定它已定义。如果我将插槽类型更改为除 AMAZON.LITERAL 之外的任何类型,它会成功构建.

这是我的整个模型:
{
"interactionModel": {
"languageModel": {
"invocationName": "chores",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": []
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "Remember",
"slots": [
{
"name": "Who",
"type": "AMAZON.Person"
},
{
"name": "When",
"type": "AMAZON.DATE"
},
{
"name": "What",
"type": "AMAZON.LITERAL"
}
],
"samples": [
"remember {Who} {What} {When}"
]
}
],
"types": []
}
}
}

编辑:

这是我提交错误时从亚马逊得到的回复:

We are not supporting AMAZON.Literal slot type anymore and we ask developer to use customer slot type is they have some set of values but if not then you can use AMAZON.SearchQuery where you will get the whole query which customer is looking for and same you can use it in you lambda function.

最佳答案

我遇到了同样的问题。这是解决方案。

您需要将您的示例话语定义为

Remember {Neil | Who} {died | What} {yesterday | When}

亚马逊强制要求提供示例输入以及您的插槽名称,因为 AMAZON.LITERAL 可以采用多种值。

更多信息请引用 here .

关于alexa-skills-kit - Alexa 意图插槽 AMAZON.LITERAL 导致构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49805941/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com