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.
Parametri di percorso
conversation_id
L'ID della conversazione
Header
xi-api-key
Richiesta
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.
Risposta
Risposta riuscita
turn_id
status
output
error
required_actions
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_cursor
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