Przejdź do nawigacji

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.

Parametry ścieżki

conversation_idstringWymagany
ID rozmowy

Nagłówki

xi-api-keystringOpcjonalny

Żądanie

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

Odpowiedź

Pomyślna odpowiedź

turn_idstring
statusenum
outputlist of objectsOpcjonalny
errorobject or nullOpcjonalny
required_actionslist of objectsOpcjonalny

Działania, na które czeka agent. Aby kontynuować, odpowiedz na każde client_tool_call elementem client_tool_result w input.

stream_cursorstring or nullOpcjonalny

Token wznowienia strumienia zdarzeń tej tury. Jest dostępny w trakcie tury; przekaż go jako Last-Event-ID, aby przesyłać zdarzenia tury.

Błędy

422
Unprocessable Entity Error