Saltar a la navegación

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 ruta

conversation_idstringRequerido

El ID de la conversación

Encabezados

xi-api-keystringOpcional

Solicitud

This endpoint expects a nullable object.
turn_idstring or nullOpcionalformat: "^[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.

Respuesta

Respuesta correcta.
turn_idstring
statusenum
outputlist of objectsOpcional
errorobject or nullOpcional
required_actionslist of objectsOpcional

Acciones que el agente está esperando. Responde a cada client_tool_call con un elemento client_tool_result en input para continuar.

stream_cursorstring or nullOpcional

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
Unprocessable Entity Error