You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Google Assistant模拟器曾忽略第二个Simple Response的displayText(Bug已修复)

Google Assistant Action 模拟器Bug:第二个Simple Response的displayText被忽略(已修复)

先给大家明确:这个问题是Google Assistant模拟器曾经存在的Bug,目前已经修复了。

我之前在用Python搭配REST API开发Google Assistant Action时遇到过这个问题:按照官方文档要求提交了包含两个Simple Response的富响应,测试时却出现了不一致的表现——语音会正常读取两个Simple Response的textToSpeech内容,但模拟器界面只显示第一个的displayText,第二个直接被忽略。

我当时提交的请求结构

{ 
  "conversationToken": "", 
  "expectUserResponse": True, 
  "expectedInputs": [ 
    { 
      "inputPrompt": { 
        "richInitialPrompt": { 
          "items": [ 
            { 
              "simpleResponse": { 
                "textToSpeech": "First speech.", 
                "displayText": "First text." 
              } 
            }, 
            { 
              "simpleResponse": { 
                "textToSpeech": "Second speech.", 
                "displayText": "Second text." 
              } 
            }
          ], 
          "suggestions": [] 
        } 
      }, 
      "possibleIntents": [ 
        { "intent": "actions.intent.TEXT" } 
      ] 
    } 
  ] 
}

当时的异常显示截图

模拟器仅显示第一个Simple Response的displayText


内容的提问来源于stack exchange,提问作者adam.ra

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 06:55:11