ナビゲーションにスキップ

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オプション

エージェントが待機しているアクション。続行するには、各client_tool_callに対し、input内のclient_tool_result項目で応答してください。

stream_cursorstring or nullオプション

このターンのイベントストリームを再開するためのトークン。ターンの進行中に存在し、Last-Event-IDとして渡すとターンのイベントをストリーミングできます。

エラー

422
Unprocessable Entity Error