文档首页/ CodeArts IDE Online/ API参考/ API/ codebreezetsbot/ async_chat_codebreezetsbot_v1_devmind_tsbot_async_chat_post接口
更新时间:2024-02-02 GMT+08:00
分享

async_chat_codebreezetsbot_v1_devmind_tsbot_async_chat_post接口

功能介绍

异步聊天请求:param data: ChatRequestMessage:return:

调试

您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。

URI

POST /v1/codebreezetsbot/devmind/tsbot/async-chat

请求参数

表1 请求Header参数

参数

是否必选

参数类型

描述

x-auth-token

String

iam x-auth-token

Content-Type

String

content enum - application/json

枚举值:

  • application/json

表2 请求Body参数

参数

是否必选

参数类型

描述

case

String

case

chat_id

String

chat id

message

String

message

infer_end

Boolean

infer end

meta_prompt

Array of strings

prompt

need_preprocess

Boolean

need or not

user_id

String

user id

task_parameters

Object

task parameters

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

result_id

String

result_id

status

String

status

error_message

String

error message

请求示例

async chat

POST https://{endpoint}/v1/codebreezetsbot/devmind/tsbot/async-chat

{
  "chat_id" : "123456",
  "message" : "hello?",
  "user_id" : "s00599361",
  "case" : "Talk"
}

响应示例

状态码: 200

Successful Response

{
  "error_message" : "error",
  "result_id" : "12345",
  "status" : "200"
}

状态码

状态码

描述

200

Successful Response

错误码

请参见错误码

相关文档