Hoppa till navigering

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.

Sökvägsparametrar

conversation_idstringObligatorisk

Konversations-ID:t

Headers

xi-api-keystringValfri

Förfrågan

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

Svar

Lyckat svar
turn_idstring
statusenum
outputlist of objectsValfri
errorobjectValfri
required_actionslist of objectsValfri

Åtgärderna som agenten väntar på. Besvara varje client_tool_call med ett client_tool_result-objekt i input för att fortsätta.

stream_cursorstringValfri

Återupptagningstoken för den här turens händelseström. Finns medan turen pågår; skicka den som Last-Event-ID för att strömma turens händelser.

Fel

422
Conversations Stop Turn Request Unprocessable Entity Error