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.
Paramètres de chemin
conversation_id
L’ID de la conversation
En-têtes
xi-api-key
Requête
This endpoint expects a nullable 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.
Réponse
Réponse réussie
turn_id
status
output
error
required_actions
Actions que l’agent attend. Répondez à chaque client_tool_call par un élément client_tool_result dans input pour continuer.
stream_cursor
Jeton de reprise pour le flux d’événements de ce tour. Présent tant que le tour est en cours ; transmettez-le comme Last-Event-ID pour diffuser les événements du tour.
Erreurs
422
Unprocessable Entity Error