# AIUI 透传指令
//废弃
说明
- 该指令只适用于技能协议v2.1,v2.0中没有该指令
- 该指令用于传输AIUI语义协议 (opens new window)中的
data
字段和semantic
字段。
# Data 指令
{
"type": "resolver.Data",
"data": [
{data数据由技能自行确定},
{iFLYOS会将这些数据完全透传,不做任何处理},
{...}
]
}
参数名 | 说明 | 类型 | 必须出现 |
---|---|---|---|
type | 取值resolver.Data | String | 是 |
data | 技能的数据详情,数据格式由技能自定义 | List | 是 |
# Semantic 指令
{
"type": "resolver.Semantic",
"semantic": [
{
"intent": "QUERY_NEAREST",
"slots": [
{
"name": "location.city",
"value": "CURRENT_CITY",
"normValue": "CURRENT_CITY"
},
{
"name": "location.poi",
"value": "CURRENT_POI",
"normValue": "CURRENT_POI"
},
{
"name": "location.type",
"value": "LOC_POI",
"normValue": "LOC_POI"
}
]
}
]
}
参数名 | 说明 | 类型 | 必须出现 |
---|---|---|---|
type | 取值resolver.Semantic | String | 是 |
semantic | 用户请求的语义理解结果 | List | 是 |
semantic.[i].intent | 命中的意图信息 | List | 是 |
semantic.[i].slots | 命中的槽信息,可以为空 | Object | 是 |
semantic.[i].slots. name | 意图名称 | String | 否 |
semantic.[i].slots. value | 词槽信息 | String | 否 |
semantic.[i].slots. normValue | 词槽名 | String | 否 |