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.
पाथ पैरामीटर
conversation_id
कन्वर्सेशन ID
हेडर
xi-api-key
अनुरोध
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.
रिस्पॉन्स
सफल रिस्पॉन्स
turn_id
status
output
error
required_actions
वे कार्रवाइयां जिनकी एजेंट प्रतीक्षा कर रहा है। जारी रखने के लिए हर client_tool_call का जवाब input में client_tool_result आइटम के साथ दें।
stream_cursor
इस टर्न की इवेंट स्ट्रीम के लिए रिज़्यूम टोकन। टर्न प्रगति पर होने के दौरान मौजूद रहता है; टर्न के इवेंट स्ट्रीम करने के लिए इसे Last-Event-ID के रूप में पास करें।
त्रुटियाँ
422
Conversations Stop Turn Request Unprocessable Entity Error