Passer à la navigation

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.

Paramètres de chemin

conversation_idstringRequis

L’ID de la conversation

En-têtes

xi-api-keystringOptionnel

Requête

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

Réponse

Réponse réussie

turn_idstring
statusenum
outputlist of objectsOptionnel
errorobjectOptionnel
required_actionslist of objectsOptionnel

Actions que l’agent attend. Répondez à chaque client_tool_call par un élément client_tool_result dans input pour continuer.

stream_cursorstringOptionnel

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
Conversations Stop Turn Request Unprocessable Entity Error