对话操作

停止 Agent 运行

优雅停止正在运行的 Agent, 会尝试等待当前节点结束后返回,最长 5s,超过 5s 仍未结束,则会返回成功。 LLM 节点,流输出时会同时被终止,但 HTTP 请求节点这种可能长时间运行的,不会被终止。

post/v2/chat/stop

Request

  • Base URL: https://app.wenwen-ai.com/api
  • URL: https://app.wenwen-ai.com/api/v2/chat/stop
  • Auth: none declared

Request body

appIdstring required

应用ID

chatIdstring required

对话ID

Example request

{
  "appId": "1234567890",
  "chatId": "1234567890",
  "outLinkAuthData": {
    "shareId": "1234567890",
    "outLinkUid": "1234567890"
  }
}

Response

成功停止工作流

successboolean required

是否成功停止

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.