नेविगेशन पर जाएँ

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.

पाथ पैरामीटर

conversation_idstringआवश्यक

कन्वर्सेशन ID

हेडर

xi-api-keystringवैकल्पिक

अनुरोध

This endpoint expects an optional object.
turn_idstringवैकल्पिकफ़ॉर्मेट: "^[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.

रिस्पॉन्स

सफल रिस्पॉन्स

turn_idstring
statusenum
outputlist of objectsवैकल्पिक
errorobjectवैकल्पिक
required_actionslist of objectsवैकल्पिक

वे कार्रवाइयां जिनकी एजेंट प्रतीक्षा कर रहा है। जारी रखने के लिए हर client_tool_call का जवाब input में client_tool_result आइटम के साथ दें।

stream_cursorstringवैकल्पिक

इस टर्न की इवेंट स्ट्रीम के लिए रिज़्यूम टोकन। टर्न प्रगति पर होने के दौरान मौजूद रहता है; टर्न के इवेंट स्ट्रीम करने के लिए इसे Last-Event-ID के रूप में पास करें।

त्रुटियाँ

422
Conversations Stop Turn Request Unprocessable Entity Error