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

CloudWatch Insights无法展示resolvedValues值的技术求助

解决CloudWatch Insights查询resolvedValues为空的问题

问题原因

你的查询直接访问interpretations.intent.slots.xcn_number.value.resolvedValues时,interpretations是数组类型,CloudWatch Insights默认只会读取数组的第一个元素。而在你的数据中,数组第一个元素的intent是Confirmation1,并没有xcn_number字段,因此返回空结果。

正确查询语句

fields @message
| filter sessionState.intent.name="Confirmation1"
| mv-expand interpretations
| filter interpretations.intent.name="xcn"
| display interpretations.intent.slots.xcn_number.value.resolvedValues

语句说明

  1. mv-expand interpretations:将interpretations数组展开,数组中的每个元素单独成为一行数据。
  2. filter interpretations.intent.name="xcn":从展开的行中筛选出intent名称为xcn的条目,这个条目才包含你需要的xcn_number字段。
  3. 最后通过display提取并展示resolvedValues的值。

内容的提问来源于stack exchange,提问作者pc_fuel

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.20 13:43:09