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 ruta
conversation_id
El ID de la conversación
Encabezados
xi-api-key
Solicitud
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.
Respuesta
Respuesta correcta.
turn_id
status
output
error
required_actions
Acciones que el agente está esperando. Responde a cada client_tool_call con un elemento client_tool_result en input para continuar.
stream_cursor
Token de reanudación para el flujo de eventos de este turno. Está presente mientras el turno está en curso; pásalo como Last-Event-ID para transmitir los eventos del turno.
Errores
422
Conversations Stop Turn Request Unprocessable Entity Error