Solutons Lounge

How to delete a pending run in Assistants? – API


Should a run be waiting for tool_output, it takes 10 minutes before to expire. In that time it is not possible to fire another run in that thread.
It would be very usefull to delete pending run in a thread expecially when debugging threads with assistants using functions tool.
Is there a way to kill the pending run (without delete a thread)?

The API Reference for Assistants offers you this method:

Cancel a Run

If it is waiting for a tool return, I’d wonder if the thread is left in a state of internal messages that are invisible, still expecting a tool if you attach to another assistant and run. The permanence and storage of internal iterations is not made clear.



Source link

Exit mobile version