Chat with Agent
向智能体提问
POST
Chat with Agent
智能体训练完成后(status=done),就可以通过对话接口向它提问了。
cURL 请求示例
Postman 请求流式响应示例
Postman 请求非流式响应示例

授权
token
请求体
application/json
agent UUID
示例:
"29db255d-211c-4fc6-8fbe-af97fa59cafa"
chat question
示例:
"How do I apply for XXX?"
chat messages
示例:
[
{
"text": "How long is the warranty period for your products?",
"role": "human"
},
{
"text": "Our products come with a standard one-year warranty.",
"role": "ai"
}
]enable stream output
示例:
true
Session ID implemented by the third-party application.
