Get conversation turn
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_id
对话 ID
请求头
xi-api-key
请求
This endpoint expects a nullable object.
turn_id
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_id
status
output
error
required_actions
智能体正在等待的操作。请在 input 中使用 client_tool_result 项响应每个 client_tool_call,以继续执行。
stream_cursor
此轮事件流的恢复令牌。该轮进行期间会提供;将其作为 Last-Event-ID 传入,以流式接收该轮事件。
错误
422
Unprocessable Entity Error