Naar navigatie springen

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.

Padparameters

conversation_idstringVerplicht

De conversatie-ID

Headers

xi-api-keystringOptioneel

Verzoek

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

Response

Geslaagde response
turn_idstring
statusenum
outputlist of objectsOptioneel
errorobject or nullOptioneel
required_actionslist of objectsOptioneel

De acties waarop de agent wacht. Beantwoord elke client_tool_call met een client_tool_result-item in input om door te gaan.

stream_cursorstring or nullOptioneel

Hervattingstoken voor de eventstream van deze beurt. Aanwezig zolang de beurt bezig is; geef dit door als Last-Event-ID om de events van de beurt te streamen.

Fouten

422
Unprocessable Entity Error