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.
Pfadparameter
conversation_id
Die Konversations-ID
Header
xi-api-key
Anfrage
This endpoint expects an optional 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.
Antwort
Erfolgreiche Antwort
turn_id
status
output
error
required_actions
Die Aktionen, auf die der Agent wartet. Beantworten Sie jeden client_tool_call mit einem client_tool_result-Element in input, um fortzufahren.
stream_cursor
Fortsetzungs-Token für den Event-Stream dieses Turns. Es ist vorhanden, während der Turn läuft; übergeben Sie es als Last-Event-ID, um die Events des Turns zu streamen.
Fehler
422
Conversations Stop Turn Request Unprocessable Entity Error