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.
Padparameters
conversation_id
De conversatie-ID
Headers
xi-api-key
Verzoek
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.
Response
Geslaagde response
turn_id
status
output
error
required_actions
De acties waarop de agent wacht. Beantwoord elke client_tool_call met een client_tool_result-item in input om door te gaan.
stream_cursor
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
Conversations Stop Turn Request Unprocessable Entity Error