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 an optional 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
에이전트가 대기 중인 작업입니다. 계속하려면 각 client_tool_call에 대해 input의 client_tool_result 항목으로 응답하세요.
stream_cursor
이 턴의 이벤트 스트림을 재개하기 위한 토큰입니다. 턴이 진행 중인 동안 제공되며, 턴의 이벤트를 스트리밍하려면 Last-Event-ID로 전달하세요.
오류
422
Conversations Stop Turn Request Unprocessable Entity Error