在使用 dialogflow mega-agent 时,根据用户设置,我希望能够一次查询特定的子代理

While using a dialogflow mega-agent, according to a user setting I want to be able to query a specific sub agent at a time

在使用 dialogflow mega-agent 时,根据用户设置,我希望能够一次查询特定的子代理。我有 3 个子代理。每个子代理都有相似的训练短语,但应该请求不同的数据。用户应该能够 select 他们想使用哪个子代理并且查询应该只转到 selected 子代理

要为检测意图请求指定一个或多个 sub-agents,请设置 QueryParameterssubAgents 字段。

例如:

{
  "queryInput": {
    "text": {
      "text": "reserve a meeting room for six people",
      "languageCode": "en-US"
    }
  },
  "queryParams": {
    "subAgents": [
       {"project": "projects/sub-agent-1-project-id"},
       {"project": "projects/sub-agent-2-project-id"}
    ]
  }
}

有关 Dialogflow ES 大型代理的详细信息,请参阅 Mega agents documentation