会话历史详情
更新时间:2024-11-04
1、接口地址:GET {IP}:{PORT}/open/v{versionId}//conversation/history/detail
2、入参
参数名 | 类型 | 是否可空 | 备注 |
---|---|---|---|
sessionId | string | 否 | 对话id |
pn | int | 是 | 页码 |
ps | int | 是 | 页面大小 |
3、返回值
参数名 | 类型 | 父节点 | 备注 |
---|---|---|---|
code | int | HTTP状态码 | |
time | long | 时间 | |
msg | string | 状态信息 | |
data | T | 数据 | |
list | list | data | 数据列表 |
queryText | string | list | 用户问题 |
suggestAnswer | string | list | 意图名称 |
queryTime | string | list | 查询时间 |
confidence | list | list | 置信度 |
source | int | list | 来源 kg: 知识图谱对话; faq:问答式对话; task_based:任务式对话 chitchat:闲聊式对话; clarify:澄清; none:未匹配;system:系统指令,静默、打断、挂机、停用 |
faqId | string | list | faqId |
question | string | list | 问题 |
示例:
{
"time": 1587452955688,
"data": {
"total": 2,
"pn": 1,
"ps": 30,
"list": [
{
"queryText": "",
"suggestAnswer": "",
"confidence": 0.0,
"queryTime": "2020-04-21 14:52:22",
"solved": true,
"source": "system",
"welcome": "您好,很高兴为您服务!",
"qaRecommend": [],
"vad": "",
"clarifyQuestions": {}
},
{
"queryText": "租车",
"suggestAnswer": "抱歉,我不太理解您的意思",
"confidence": 0.0,
"queryTime": "2020-04-21 14:52:26",
"solved": false,
"source": "none",
"welcome": "",
"qaRecommend": [],
"vad": "",
"clarifyQuestions": {}
},
{
"queryText": "百度",
"suggestAnswer": "",
"confidence": 0.0,
"queryTime": "2020-04-21 15:36:27",
"solved": true,
"source": "clarify",
"welcome": "",
"qaRecommend": [],
"vad": "",
"clarifyQuestions": {
"voice": {
"questions": [
"请问您想问的是百度公司吗?"
],
"content": "请问您想问的是百度公司吗?"
},
"text": {
"questions": [
"百度公司"
],
"title": "请问您想咨询的是?"
}
}
}
]
},
"code": 200,
"msg": "OK"
}