Ir para a navegação

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.

Parâmetros de caminho

conversation_idstringObrigatório
O ID da conversa

Cabeçalhos

xi-api-keystringOpcional

Solicitação

This endpoint expects an optional object.
turn_idstringOpcionalformat: "^[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.

Resposta

Resposta bem-sucedida

turn_idstring
statusenum
outputlist of objectsOpcional
errorobjectOpcional
required_actionslist of objectsOpcional

As ações que o agente aguarda. Responda a cada client_tool_call com um item client_tool_result em input para continuar.

stream_cursorstringOpcional

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