StreamQuery - 流式对话
更新时间:2025-02-26
API访问域名
请求方式 | POST | 说明 |
---|---|---|
URI | https://api-ngd.baidu.com | |
后缀接口 | core/v5/stream/query |
说明
- 在流式对话模式中,系统会返回多个chunk(片段)返回。每一个 chunk 可能包含最终答案的一部分内容,系统在生成部分内容之时就将其传递给用户,而不必等到完整答案全部生成完毕。在该模式中,系统在逐步产出回答的过程里,同步地将回答的一部分逐次发送给用户,以此确保较为快速的首字输出,确保交互的即时性。
适用场景:
- 要求快速响应的场景:适用于实时互动场景,如在线游戏的客服支持或者商家的售后客服支持,客服需要对用户提出的问题及时反馈。
- 不依赖完整答案进行决策的场景:若用户仅查询一些简单信息,而无需完整分析时,可使用流式对话。
流式对话多次返回示例:
Plain Text
1data:{"sessionId":"xxx","queryId":"xxx","replyStatus":200,"answer":[{"chunkId":0,"status":"running","topicId":"","blockId":"","nodeId":"","name":null,"taskFlowSolved":null,"reply":{"type":1,"text":"写爱情","textList":null,"clarifyGuide":null,"replySource":"CHITCHAT","showDocumentSource":null,"documents":null,"tableQAInfo":null,"docDebug":null,"faqSearch":null,"slotCollectInfo":null,"plugin":null,"url":null,"buttons":null,"intentName":null},"instruction":null,"statisticsInfo":null,"debugReplyType":"chitchat","debugNodeName":null,"debugInputParam":null,"debugCost":null,"debugResult":null}],"variables":{"last_response":"","last_user_response":"帮我写一首关于爱情的诗","triggered_intent":["智能写诗_plugin"],"last_intent":""},"endTime":null,"recommendList":["帮我写首诗","为什么还没下班"],"rewriteQuery":"帮我写一首关于爱情的诗","intent":null,"replyInfo":null,"needIgnoreDialogHistory":false,"agentType":1,"qps":1,"totalTokens":0,"statisticsInfoMap":{"unMatch":{"nodeId":"unMatch","type":"unMatch","prompt":null,"output":null,"instruction":null,"errorCode":null,"errorMessage":null,"entityName":null}}}
2data:{"sessionId":"xxx","queryId":"xxx","replyStatus":200,"answer":[{"chunkId":0,"status":"running","topicId":"","blockId":"","nodeId":"","name":null,"taskFlowSolved":null,"reply":{"type":1,"text":"诗啊","textList":null,"clarifyGuide":null,"replySource":"CHITCHAT","showDocumentSource":null,"documents":null,"tableQAInfo":null,"docDebug":null,"faqSearch":null,"slotCollectInfo":null,"plugin":null,"url":null,"buttons":null,"intentName":null},"instruction":null,"statisticsInfo":null,"debugReplyType":"chitchat","debugNodeName":null,"debugInputParam":null,"debugCost":null,"debugResult":null}],"variables":{"last_response":"","last_user_response":"帮我写一首关于爱情的诗","triggered_intent":["智能写诗_plugin"],"last_intent":""},"endTime":null,"recommendList":["帮我写首诗","为什么还没下班"],"rewriteQuery":"帮我写一首关于爱情的诗","intent":null,"replyInfo":null,"needIgnoreDialogHistory":false,"agentType":1,"qps":1,"totalTokens":0,"statisticsInfoMap":{"unMatch":{"nodeId":"unMatch","type":"unMatch","prompt":null,"output":null,"instruction":null,"errorCode":null,"errorMessage":null,"entityName":null}}}
3data:{"sessionId":"xxx","queryId":"xxx","replyStatus":200,"answer":[{"chunkId":0,"status":"running","topicId":"","blockId":"","nodeId":"","name":null,"taskFlowSolved":null,"reply":{"type":1,"text":",这","textList":null,"clarifyGuide":null,"replySource":"CHITCHAT","showDocumentSource":null,"documents":null,"tableQAInfo":null,"docDebug":null,"faqSearch":null,"slotCollectInfo":null,"plugin":null,"url":null,"buttons":null,"intentName":null},"instruction":null,"statisticsInfo":null,"debugReplyType":"chitchat","debugNodeName":null,"debugInputParam":null,"debugCost":null,"debugResult":null}],"variables":{"last_response":"","last_user_response":"帮我写一首关于爱情的诗","triggered_intent":["智能写诗_plugin"],"last_intent":""},"endTime":null,"recommendList":["帮我写首诗","为什么还没下班"],"rewriteQuery":"帮我写一首关于爱情的诗","intent":null,"replyInfo":null,"needIgnoreDialogHistory":false,"agentType":1,"qps":1,"totalTokens":0,"statisticsInfoMap":{"unMatch":{"nodeId":"unMatch","type":"unMatch","prompt":null,"output":null,"instruction":null,"errorCode":null,"errorMessage":null,"entityName":null}}}
4data:{"sessionId":"xxx","queryId":"xxx","replyStatus":200,"answer":[{"chunkId":0,"status":"running","topicId":"","blockId":"","nodeId":"","name":null,"taskFlowSolved":null,"reply":{"type":1,"text":"真是太浪漫","textList":null,"clarifyGuide":null,"replySource":"CHITCHAT","showDocumentSource":null,"documents":null,"tableQAInfo":null,"docDebug":null,"faqSearch":null,"slotCollectInfo":null,"plugin":null,"url":null,"buttons":null,"intentName":null},"instruction":null,"statisticsInfo":null,"debugReplyType":"chitchat","debugNodeName":null,"debugInputParam":null,"debugCost":null,"debugResult":null}],"variables":{"last_response":"","last_user_response":"帮我写一首关于爱情的诗","triggered_intent":["智能写诗_plugin"],"last_intent":""},"endTime":null,"recommendList":["帮我写首诗","为什么还没下班"],"rewriteQuery":"帮我写一首关于爱情的诗","intent":null,"replyInfo":null,"needIgnoreDialogHistory":false,"agentType":1,"qps":1,"totalTokens":0,"statisticsInfoMap":{"unMatch":{"nodeId":"unMatch","type":"unMatch","prompt":null,"output":null,"instruction":null,"errorCode":null,"errorMessage":null,"entityName":null}}}
5data:{"sessionId":"xxx","queryId":"xxx","replyStatus":200,"answer":[{"chunkId":0,"status":"running","topicId":"","blockId":"","nodeId":"","name":null,"taskFlowSolved":null,"reply":{"type":1,"text":"了!","textList":null,"clarifyGuide":null,"replySource":"CHITCHAT","showDocumentSource":null,"documents":null,"tableQAInfo":null,"docDebug":null,"faqSearch":null,"slotCollectInfo":null,"plugin":null,"url":null,"buttons":null,"intentName":null},"instruction":null,"statisticsInfo":null,"debugReplyType":"chitchat","debugNodeName":null,"debugInputParam":null,"debugCost":null,"debugResult":null}],"variables":{"last_response":"","last_user_response":"帮我写一首关于爱情的诗","triggered_intent":["智能写诗_plugin"],"last_intent":""},"endTime":null,"recommendList":["帮我写首诗","为什么还没下班"],"rewriteQuery":"帮我写一首关于爱情的诗","intent":null,"replyInfo":null,"needIgnoreDialogHistory":false,"agentType":1,"qps":1,"totalTokens":0,"statisticsInfoMap":{"unMatch":{"nodeId":"unMatch","type":"unMatch","prompt":null,"output":null,"instruction":null,"errorCode":null,"errorMessage":null,"entityName":null}}}
请求参数
Header参数
名称 | 类型 | 必填 | 中文名 | 说明 |
---|---|---|---|---|
token | string | 是 | bot_access_token | access_token: access_token是bot的属性,通过bot管理列表获取 |
Uid | string | 否 | c 端用户id | |
Username | string | 否 | c 端用户名称 | |
ACTIVE | boolean | 否 | 调用环境 | online/offline 分别代表线上环境和测试环境公有云环境该参数不生效 |
Body参数
名称 | 类型 | 必填 | 中文名 | 说明 |
---|---|---|---|---|
queryText | string | 否 | 用户问题 | 请求的问题,比如示例中的:你好 |
sessionId | string | 否 | 会话id | 用于标识一个访问者的会话和保持上下文信息,在首轮对话中可以为空。 |
chatSessionLatitudeSwitch | boolean | 否 | 单次session闲聊 | 该字段控制单次session闲聊是否开启,默认值:true |
variables | object | 否 | 变量 | 对话中使用的变量,填写后会覆盖当前中对话中已有的变量值。格式为MAP(key 是变量名称,value是变量值)。 |
topicId | string | 否 | 主题id | 对话测试时使用,执行指定的topic,和nodeId配合使用 |
engines | array | 否 | 使用的对话引擎 | String类型,FAQ("faq", "知识库-FAQ"),DOC_QA("docQa", "知识库-文档问答"),TASK_FLOW("taskflow", "流程画布"),TASK_BASED("task_based", "意图识别"),为null 或taskflow是支持所有引擎 |
multimodal | array | 否 | 多模态输入 | 当前支持图片,不能单独使用,需要和queryText 一起传递,目前仅标准版支持 |
multimodal \ fileKey | string | 否 | 文件唯一标识 | 使用/open/api/v2/file/upload接口上传后返回的key |
multimodal \ type | string | 否 | 文件类型 | 1 :图片,目前只支持图片,上传一张图片 |
startId | string | 否 | 节点id | 对话测试时使用,执行指定的节点id。和topicId配合使用 |
channel | string | 否 | 渠道 | 渠道管理中的渠道标识,传递该参数,可以命中FAQ中配置的条件答案 |
button | object | 否 | 按钮 | 按钮步骤会回复所有按钮的id,名称集合,点击按钮时需传递该字段 |
button \ id | string | 否 | 按钮id | |
button \ name | string | 否 | 按钮名称 | |
collect | boolean | 否 | 对话数据收集 | 是否收集会话数据,用于统计、标注 |
响应参数
名称 | 类型 | 必填 | 中文名 | 说明 |
---|---|---|---|---|
sessionId | string | 是 | 会话ID | 用于标识本轮会话的唯一ID |
queryId | string | 是 | 对话ID | 用于标识本次对话的唯一ID |
replyStatus | integer | 是 | 回复状态 | 回复状态,默认成功SUCCESS(200, "成功");FAIL(4008001, "失败"); |
answer | array | 是 | 回答列表 | 包含各个回答块的数组 |
answer \ chunkId | integer | 是 | 流式chunkId | 流式会话将AI的回答分块(chunk)返回,一次返回一个chunk,该参数标识一次对话中的唯一chunk |
answer \ status | string | 是 | 流式返回数据状态 | RUNNING("running")表示还有未传完的chunk;DONE("done")表示当前chunk为该轮对话中的最后一个chunk; |
answer \ topicId | string | 否 | 主题ID | 对应的主题ID |
answer \ blockId | string | 否 | 区块ID | 对应的区块ID |
answer \ nodeId | string | 否 | 节点ID | 对应的节点ID |
answer \ reply | object | 否 | 回复 | 包含回复相关详细信息的对象 |
answer \ reply \ type | integer | 是 | 回复类型 | 1 (文本)3(富文本)8(列表) |
answer \ reply \ text | string | 是 | 文本 | 文本/富文本答案 |
answer \ reply \ textList | array | 否 | 文本列表 | 回复的文本列表 |
answer \ reply \ buttons | array | 否 | 按钮列表 | replySource是BUTTONS 时该字段有值 |
answer \ reply \ buttons \ id | string | 否 | 按钮id | |
answer \ reply \ buttons \ name | string | 否 | 按钮名称 | |
answer \ reply \ clarifyGuide | string | 否 | 澄清指南 | 提供澄清相关的指南和信息 |
answer \ reply \ replySource | string | 是 | 回复来源 | FAQ("faq", "知识库-FAQ"),DOC_QA("docQa", "知识库-文档"),TEXT_REPLY("text", "文本回复"),INTENT_CLARIFY("intentClarify", "意图澄清"),LARGE_MODEL_REPLY("largeModelReply", "大模型回复"),COLLECT_SLOT_ENTITY("collectSlotEntity", "收集槽位实体"),CHITCHAT("chitchat", "闲聊"),UNMATCHED("unmatch", "未匹配固定话术"),SENSITIVE("sensitive", "敏感拒答话术"),SYSTEM("system", "系统异常"),INSTRUCTION("instruction", "指令"); |
answer \ reply \ showDocumentSource | boolean | 否 | 显示文档源 | 是否显示文档来源 |
answer \ reply \ documents | array | 是 | 文档 | 知识问答信息,replySource是DOC_QA 该字段有值 |
answer \ reply \ documents \ document_id | string | 是 | 文档ID | 文档的唯一标识符 |
answer \ reply \ documents \ document_name | string | 是 | 文档名 | 文档的名称 |
answer \ reply \ documents \ knowledge_type | string | 是 | 文档类型 | 文档类型:doc 普通文档, web 网页知识 |
answer \ reply \ documents \ web_url | string | 是 | 文档链接 | 文档链接,当knowledgeType 是 web 时有值 |
answer \ reply \ documents \ data | array | 是 | 数据 | 文档的数据内容 |
answer \ reply \ documents \ data \ segment_id | string | 是 | 段落ID | 段落的唯一标识符 |
answer \ reply \ documents \ data \ segment_content | string | 是 | 段落内容 | 段落的文本内容 |
answer \ reply \ documents \ data \ score | string | 是 | 得分 | 段落相关性得分 |
answer \ reply \ documents \ data \ segment_coord | string | 是 | 段落坐标 | 段落在文档中的位置坐标 |
answer \ reply \ documents \ data \ data | array | 是 | 数据 | 段落中的句子数据 |
answer \ reply \ documents \ data \ data \ sentence_id | string | 是 | 句子ID | 句子的唯一标识符 |
answer \ reply \ documents \ data \ data \ sentence_content | string | 是 | 句子内容 | 句子的文本内容 |
answer \ reply \ documents \ data \ data \ score | string | 是 | 得分 | 句子相关性得分 |
answer \ reply \ docDebug | object | 否 | 文档调试 | 提供文档调试相关信息,replySource是DOC_QA 该字段有值 |
answer \ reply \ faqSearch | array | 否 | FAQ搜索 | faq 检索信息,replySource是FAQ 该字段有值 |
answer \ reply \ slotCollectInfo | object | 否 | 槽收集信息 | 收集槽信息 |
answer \ reply \ slotCollectInfo \ waitCollectResultList | array | 是 | 待收集结果列表 | 列出待收集的结果 |
answer \ reply \ slotCollectInfo \ waitCollectResultList \ name | string | 是 | 名称 | 待收集的槽名称 |
answer \ reply \ slotCollectInfo \ waitCollectResultList \ result | string | 是 | 结果 | 已收集的结果 |
answer \ reply \ slotCollectInfo \ waitCollectResultList \ option | array | 否 | 可选值 | 可选的答案 |
answer \ reply \ slotCollectInfo \ waitCollectResultList \ option \ optionSize | integer | 否 | 选项数量 | 选项数量 |
answer \ reply \ slotCollectInfo \ waitCollectResultList \ option \ clarity | string | 否 | 清晰度 | 澄清话术 |
answer \ reply \ slotCollectInfo \ waitCollectResultList \ option \ inputExample | string | 是 | 输入示例 | 输入的示例 |
answer \ reply \ slotCollectInfo \ waitCollectResultList \ option \ outputExample | string | 是 | 输出示例 | 输出的示例 |
answer \ reply \ slotCollectInfo \ hasCollectResultList | array | 是 | 已收集结果列表 | 列出已收集的结果 |
instruction | object | 否 | 指令 | 发出指令后有值,指令详细信息 Map<String, Map<String, String>>, 外层key为指令标识,value为指令参数map |
variables | object | 是 | 变量 | Map<String, Object>存储会话期间的各种变量信息 |
endTimestring | 否 | 结束时间 | 会话结束时间 | |
recommendList | array | 是 | 推荐列表 | 提供可能的操作或信息的推荐列表 |
rewriteQuery | string | 是 | 重写查询 | 用户输入的重写版本 |
intent | array | 是 | 意图 | 列出此次会话涉及的意图 |
intent \ _effect | integer | 是 | 影响 | 表示此意图的效果 |
intent \ id | string | 是 | ID | 意图的唯一标识符 |
intent \ name | string | 是 | 名称 | 意图的名称 |
intent \ description | string | 否 | 描述 | 意图的描述 |
intent \ agentId | string | 否 | 代理ID | 代理的ID |
intent \ created | string | 否 | 创建时间 | 意图创建时间 |
intent \ updated | string | 否 | 更新时间 | 意图最后更新时间 |
intent \ confidence | float | 是 | 置信度 | 意图识别的置信度 |
intent \ source | string | 是 | 来源 | 意图识别的来源 |
intent \ threshold | float | 是 | 阈值 | 意图识别的阈值 |
intent \ system | boolean | 是 | 系统意图 | 是否为系统预定义的意图 |
intent \ needClarify | boolean | 是 | 需要澄清 | 是否需要澄清此意图 |
intent \ alias | string | 否 | 别名 | 意图的别名 |
intent \ nameZh | string | 是 | 中文名称 | 意图的中文名称 |
intent \ examples | array | 否 | 示例 | 意图的示例 |
intent \ hasActiveCopy | boolean | 是 | 活跃副本 | 意图是否有活跃的副本 |
intent \ templateStr | string | 否 | 模板字符串 | 意图的模板字符串 |
intent \ createdUserName | string | 否 | 创建者用户名 | 创建此意图的用户的用户名 |
intent \ createdUserId | string | 否 | 创建者用户ID | 创建此意图的用户的用户ID |
intent \ lastEditUserName | string | 否 | 最后编辑用户名 | 最后编辑此意图的用户的用户名 |
intent \ lastEditUserId | string | 否 | 最后编辑用户ID | 最后编辑此意图的用户的用户ID |
intent \ version | integer | 是 | 版本 | 意图的版本 |
intent \ industryIntent | boolean | 是 | 行业意图 | 是否为特定行业的意图 |
intent \ knnExampleStr | string | 是 | KNN示例字符串 | 用于KNN匹配的示例字符串 |
intent \ extra | object | 否 | 额外信息 | 包含额外信息的对象 |
intent \ recSource | string | 否 | 推荐来源 | 意图推荐的来源 |
intent \ noResponse | boolean | 是 | 无响应 | 是否未响应 |
请求示例
Bash
1curl --location 'https://keyue.cloud.baidu.com/online/core/v5/stream/query'
2--header 'token: xxxx'
3--header 'Content-Type: application/json'
4--data '{
5 "queryText": "你好",
6 "sessionId": "ecb95fcc-0e49-4ab0-b026-c20a8aac1585",
7 "multimodal": {"fileKey":"xxxx", "type":"1"},
8 "variables": {
9 "homeAddress": "chengdu"
10 }
11}'
响应示例
1{
2 "sessionId": "02329c01-7720-45e9-b19c-6dfacec87b81",
3 "queryId": "39ad613a-a089-4019-baa4-8f48558b5f63",
4 "replyStatus": 200,
5 "answer": [
6 {
7 "chunkId": 0,
8 "status": "done",
9 "topicId": "",
10 "blockId": "",
11 "nodeId": "",
12 "reply": null,
13 "instruction": null
14 }
15 ],
16 "variables": {
17 "last_response": "",
18 "last_user_response": "我要租车",
19 "LLM_rewrite_query": "我要租车",
20 "triggered_intent": [
21 "我要租车",
22 "我要租车"
23 ],
24 "last_intent": "我要租车"
25 },
26 "endTime": null,
27 "recommendList": [
28 "今天天气怎么样"
29 ],
30 "rewriteQuery": "我要租车",
31 "intent": [
32 {
33 "_effect": 0,
34 "id": "946f7bf7-0d29-11ef-81bf-fa20202f5a70",
35 "name": "h4f4e8f6",
36 "description": "",
37 "agentId": null,
38 "created": null,
39 "updated": null,
40 "confidence": 1.0,
41 "source": "knnExactly",
42 "threshold": 0.0,
43 "system": false,
44 "needClarify": false,
45 "alias": null,
46 "nameZh": "我要租车",
47 "examples": null,
48 "hasActiveCopy": false,
49 "templateStr": null,
50 "createdUserName": null,
51 "createdUserId": null,
52 "lastEditUserName": null,
53 "lastEditUserId": null,
54 "version": 0,
55 "industryIntent": false,
56 "knnExampleStr": "我要租车",
57 "extra": null,
58 "recSource": null,
59 "noResponse": false
60 }
61 ]
62}
1{
2 "sessionId": "948c2eef-02e4-46ff-b9d1-e38833b7764a",
3 "queryId": "f794f6fe-2483-46a6-86b8-711fd9627ff7",
4 "replyStatus": 200,
5 "answer": [{
6 "chunkId": 2,
7 "status": "done",
8 "topicId": "a52cce91-f235-4c6e-96b0-fdb026c0c09c",
9 "blockId": "xRGRfnMdWCTIxRoUtWAzqK37SuUxnur_ThW_",
10 "nodeId": "v8tdXcXokpltzHq5NrhXnNEEfjM0s6_wgQxy",
11 "reply": {
12 "type": 1,
13 "text": "这是一个文本节点",
14 "textList": null,
15 "clarifyGuide": null,
16 "replySource": "TEXT_REPLY",
17 "showDocumentSource": null,
18 "documents": null,
19 "docDebug": null,
20 "faqSearch": null,
21 "slotCollectInfo": null,
22 "instruction": null
23 },
24 "instruction": null
25 }],
26 "variables": {
27 "date": "2024-05-08",
28 "last_intent": "",
29 "week": "3",
30 "last_task_prompt": "这是一个文本节点",
31 "time": "19:28:50",
32 "last_response": "这是一个文本节点",
33 "last_user_response": ""
34 },
35 "endTime": null,
36 "recommendList": [],
37 "rewriteQuery": null,
38 "intent": null
39}
1{
2 "sessionId": "368bfd87-8613-411f-aef5-f0a64d899423",
3 "queryId": "29baf91e-844c-43d9-a967-e7ac48625f3d",
4 "replyStatus": 200,
5 "answer": [
6 {
7 "chunkId": 2,
8 "status": "done",
9 "topicId": "580f7938-b65b-4535-bd25-2d8efec3e857",
10 "blockId": "a0mdNQsd1qZ_DY2hlmaO_rgAr6CfSynPCY0V",
11 "nodeId": "t5tTlI6FOr3Sq49BDqINNARuIAov7z1FUpV8",
12 "reply": {
13 "type": 3,
14 "text": "<!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n<p><strong>你好啊</strong></p>\n</body>\n</html>",
15 "textList": null,
16 "clarifyGuide": null,
17 "replySource": "TEXT_REPLY",
18 "showDocumentSource": null,
19 "documents": null,
20 "docDebug": null,
21 "faqSearch": null,
22 "slotCollectInfo": null
23 },
24 "instruction": null
25 }
26 ],
27 "variables": {
28 "date": "2024-06-06",
29 "last_intent": "",
30 "week": "4",
31 "last_task_prompt": "<!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n<p><strong>你好啊</strong></p>\n</body>\n</html>",
32 "time": "10:34:48",
33 "last_response": "<!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n<p><strong>你好啊</strong></p>\n</body>\n</html>",
34 "last_user_response": ""
35 },
36 "endTime": null,
37 "recommendList": [],
38 "rewriteQuery": null,
39 "intent": null
40}
1{
2 "sessionId": "0697c039-a3d2-4dfa-9dd6-e0f3480efecd",
3 "queryId": "41ee2b18-fa37-4900-982f-0ac7bd49289a",
4 "replyStatus": 200,
5 "answer": [{
6 "chunkId": 2,
7 "status": "done",
8 "topicId": "a52cce91-f235-4c6e-96b0-fdb026c0c09c",
9 "blockId": "l8-41S-gL7ri-zryMlFK_QX4HorFnQhFdOuC",
10 "nodeId": "TIBM8ImijKE3SXIiFX60rRP5Q37tS1TSQvr0",
11 "reply": {
12 "type": 1,
13 "text": "",
14 "textList": null,
15 "clarifyGuide": null,
16 "replySource": "LARGE_MODEL_REPLY",
17 "showDocumentSource": null,
18 "documents": null,
19 "docDebug": null,
20 "faqSearch": null,
21 "slotCollectInfo": null,
22 "instruction": null
23 },
24 "instruction": null
25 }],
26 "variables": {
27 "date": "2024-05-08",
28 "last_intent": "",
29 "week": "3",
30 "time": "19:31:28",
31 "last_response": "当然可以,以下是一首简短的诗歌:\n\n春风轻拂花,\n细雨滋养生。\n心中怀希望,\n未来自光明。",
32 "last_user_response": ""
33 },
34 "endTime": null,
35 "recommendList": [],
36 "rewriteQuery": null,
37 "intent": null
38}
1{
2 "sessionId": "168a6818-bb89-4a2c-a9c7-f4f55f304f2f",
3 "queryId": "67f8b037-99a4-4e33-84cb-d4c747e8c725",
4 "replyStatus": 200,
5 "answer": [
6 {
7 "chunkId": 0,
8 "status": "done",
9 "topicId": "a52cce91-f235-4c6e-96b0-fdb026c0c09c",
10 "blockId": "DoGqiBQ-iEEPhMv-GgOqiVCTnxBA5sBvrbnB",
11 "nodeId": "_z1WGiWEdEkdiuwefe7KhWqvnRdcqH0J1Xmv",
12 "reply": {
13 "type": 1,
14 "text": "很抱歉,刘星先生,我注意到您提供的身份证号码似乎不符合标准格式。身份证号码通常是一串特定的数字组合。能否请您再次确认并提供正确的身份证号码呢?这对我们的业务办理至关重要,谢谢。",
15 "textList": null,
16 "clarifyGuide": null,
17 "replySource": "COLLECT_SLOT_ENTITY",
18 "showDocumentSource": null,
19 "documents": null,
20 "docDebug": null,
21 "faqSearch": null,
22 "slotCollectInfo": {
23 "waitCollectResultList": [
24 {
25 "name": "身份证号",
26 "result": "",
27 "option": null,
28 "optionSize": null,
29 "clarity": "",
30 "inputExample": "120101200001012345,12010120000101234x",
31 "outputExample": "120101200001012000"
32 }
33 ],
34 "hasCollectResultList": [
35 {
36 "name": "人名",
37 "result": "刘星",
38 "option": null,
39 "optionSize": null,
40 "clarity": "",
41 "inputExample": "贝克汉姆,姚明",
42 "outputExample": "贝克汉姆"
43 }
44 ]
45 },
46 "instruction": null
47 },
48 "instruction": null
49 }
50 ],
51 "variables": {
52 "last_intent": null,
53 "last_task_prompt": "很抱歉,刘星先生,我注意到您提供的身份证号码似乎不符合标准格式。身份证号码通常是一串特定的数字组合。能否请您再次确认并提供正确的身份证号码呢?这对我们的业务办理至关重要,谢谢。",
54 "last_response": "很抱歉,刘星先生,我注意到您提供的身份证号码似乎不符合标准格式。身份证号码通常是一串特定的数字组合。能否请您再次确认并提供正确的身份证号码呢?这对我们的业务办理至关重要,谢谢。",
55 "last_entity_prompt": "很抱歉,刘星先生,我注意到您提供的身份证号码似乎不符合标准格式。身份证号码通常是一串特定的数字组合。能否请您再次确认并提供正确的身份证号码呢?这对我们的业务办理至关重要,谢谢。",
56 "last_user_response": "小明"
57 },
58 "endTime": null,
59 "recommendList": [],
60 "rewriteQuery": null,
61 "intent": null
62}
1{
2 "sessionId": "1b7f75ad-b9cb-4155-83b6-a4349aa30170",
3 "queryId": "47913f67-5abd-410f-9e32-e7996081789a",
4 "replyStatus": 200,
5 "answer": [
6 {
7 "chunkId": 2,
8 "status": "done",
9 "topicId": "a52cce91-f235-4c6e-96b0-fdb026c0c09c",
10 "blockId": "8P7zEt-ykB5WCCCVFg69Shlp_RxtEP4d9mYa",
11 "nodeId": "lM8hwEhaPSzK-xghkz9GOEK3ME_VlG4gXFgK",
12 "reply": null,
13 "instruction": {
14 "system_toCustomerService": {
15 "gotoBed": "sleep"
16 }
17 }
18 }
19 ],
20 "variables": {
21 "date": "2024-05-08",
22 "last_intent": "",
23 "week": "3",
24 "time": "19:39:37",
25 "last_response": "",
26 "last_user_response": ""
27 },
28 "endTime": null,
29 "recommendList": [],
30 "rewriteQuery": null,
31 "intent": null
32}
1{
2 "sessionId": "ca6b7dbd-e0cd-4c90-89a2-ad1c2c810ec2",
3 "queryId": "4d7bcbde-b17d-48ff-b9d0-5a0b4cf5ab3c",
4 "replyStatus": 200,
5 "answer": [
6 {
7 "chunkId": 0,
8 "status": "done",
9 "topicId": "",
10 "blockId": "",
11 "nodeId": "",
12 "reply": {
13 "type": 1,
14 "text": "",
15 "textList": null,
16 "clarifyGuide": null,
17 "replySource": "CHITCHAT",
18 "showDocumentSource": null,
19 "documents": null,
20 "docDebug": null,
21 "faqSearch": null,
22 "slotCollectInfo": null,
23 "instruction": null
24 },
25 "instruction": null
26 }
27 ],
28 "variables": {
29 "last_response": "是啊,今天的天气确实不错,阳光明媚的,让人心情都跟着愉悦起来了。您打算出门走走,享受一下这美好的天气吗?",
30 "last_user_response": "今天天气真好啊",
31 "LLM_rewrite_query": "今天天气真好啊",
32 "last_intent": ""
33 },
34 "endTime": null,
35 "recommendList": [
36 "今天天气怎么样"
37 ],
38 "rewriteQuery": "今天天气真好啊",
39 "intent": null
40}