跳到导航

Get conversation turn

Alpha

Stop the latest turn of a conversation, and wait until it ends. The turn then has the interrupted status, or its own status if it ended before the stop. If the turn does not end in time, the endpoint returns 202 and in_progress. This endpoint is in alpha and may change.

路径参数

conversation_idstring必需

对话 ID

请求头

xi-api-keystring可选

请求

This endpoint expects a nullable object.
turn_idstring or null可选格式: "^[1-9][0-9]*$"<=20 characters
The turn to stop. If you omit it, the endpoint stops the latest turn of the conversation. Send it so that a late stop cannot stop a newer turn.

响应

成功响应

turn_idstring
statusenum
outputlist of objects可选
errorobject or null可选
required_actionslist of objects可选

智能体正在等待的操作。请在 input 中使用 client_tool_result 项响应每个 client_tool_call,以继续执行。

stream_cursorstring or null可选

此轮事件流的恢复令牌。该轮进行期间会提供;将其作为 Last-Event-ID 传入,以流式接收该轮事件。

错误

422
Unprocessable Entity Error