# 数字伙伴会话结果获取
# host: https://yach-oapi.zhiyinlou.com 正式环境
# host: https://yach-oapi-test.zhiyinlou.com 测试环境
# 概述
| 名称 | 值 |
|---|---|
| 地址 | /openapi/v2/agent/chat |
| 请求方式 | GET |
| 参数 | 见【参数】 |
| 返回值 | 见【返回值】 |
# header
| 名称 | 值 |
|---|---|
| Accept | text/event-stream, application/json |
# 参数
| 参数 | 参数类型 | 必须 | 说明 |
|---|---|---|---|
| access_token | String | 是 | 调用接口凭证 |
| stream_id | String | 是 | 通过数字伙伴会话接口获取到的stream_id (有效期30分钟) |
| stream_version | String | 是 | 流式结果输出版本号,固定v2 |
返回值(流式输出的结果数据)
data: {"msg_id":"78b59994d2085412f3d0bcfc39e7014c_5dbf893073f363f979fb31fd9d246f40_mfswsDTLzz","is_finished":false,"finish_reason":"","type":"think","content":{"type":"think","content":" "}}
data: {"msg_id":"78b59994d2085412f3d0bcfc39e7014c_5dbf893073f363f979fb31fd9d246f40_mfswsDTLzz","is_finished":false,"finish_reason":"","type":"think","content":{"type":"think","content":"\n"}}
data: {"msg_id":"78b59994d2085412f3d0bcfc39e7014c_5dbf893073f363f979fb31fd9d246f40_mfswsDTLzz","is_finished":false,"finish_reason":"","type":"think","content":{"type":"think","content":"Th"}}
data: {"msg_id":"78b59994d2085412f3d0bcfc39e7014c_5dbf893073f363f979fb31fd9d246f40_mfswsDTLzz","is_finished":false,"finish_reason":"","type":"think","content":{"type":"think","content":"e"}}