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.
Parâmetros de caminho
conversation_id
O ID da conversa
Cabeçalhos
xi-api-key
Solicitação
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.
Resposta
Resposta bem-sucedida
turn_id
status
output
error
required_actions
As ações que o agente aguarda. Responda a cada client_tool_call com um item client_tool_result em input para continuar.
stream_cursor
Token de retomada para o fluxo de eventos deste turno. Está presente enquanto o turno está em andamento; passe-o como Last-Event-ID para transmitir os eventos do turno.
Erros
422
Conversations Stop Turn Request Unprocessable Entity Error