actionssdk中的自定义实体

问题描述 投票:0回答:1

使用google actionsSDK,并试图弄清楚如何将针对我的意向训练问题的自定义实体包含在动作包中。我在这里找到了手册:https://developers.google.com/assistant/conversational/action-package/reference/QueryPatterns,但此手册简短,并且没有提供应包含自定义类型的方式。

你们有经验吗?

actions-on-google
1个回答
0
投票

是的,关于动作SDK的Google文档,没有评论。根据您提供的示例,这些自定义类型属于actions.json中的主要结构,例如:

"actions":[..],
"locale": "de",
"customTypes": [
    {
      "name": "$MorningOptions",
      "items": [
        {
          "key": "6am",
          "synonyms": [
            "6 am",
            "6 o clock",
            "oh six hundred",
            "6 in the morning"
          ]
        }
      ]
    }
  ]
© www.soinside.com 2019 - 2024. All rights reserved.