Vai alla navigazione

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.

Parametri di percorso

conversation_idstringObbligatorio
L'ID della conversazione

Header

xi-api-keystringOpzionale

Richiesta

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

Risposta

Risposta riuscita
turn_idstring
statusenum
outputlist of objectsOpzionale
errorobject or nullOpzionale
required_actionslist of objectsOpzionale

Azioni che l’agente è in attesa di ricevere. Per continuare, rispondi a ogni client_tool_call con un elemento client_tool_result in input.

stream_cursorstring or nullOpzionale

Token di ripresa per il flusso di eventi di questo turno. È presente mentre il turno è in corso; passalo come Last-Event-ID per trasmettere gli eventi del turno.

Errori

422
Unprocessable Entity Error