탐색으로 건너뛰기

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 an optional object.
turn_idstring선택 사항형식: "^[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선택 사항
required_actionslist of objects선택 사항

에이전트가 대기 중인 작업입니다. 계속하려면 각 client_tool_call에 대해 input의 client_tool_result 항목으로 응답하세요.

stream_cursorstring선택 사항

이 턴의 이벤트 스트림을 재개하기 위한 토큰입니다. 턴이 진행 중인 동안 제공되며, 턴의 이벤트를 스트리밍하려면 Last-Event-ID로 전달하세요.

오류

422
Conversations Stop Turn Request Unprocessable Entity Error