I’ve been attempting to integrate the Assistants API streaming mode into a workflow with my own tools (function calling).
Following from the Assistants API documentation, I’ve been using the AssistantEventHandler
, however the issue I run into is that in instances where multiple tool calls are required based on the user’s input, the event handler will end up closing the stream before the run is complete. Otherwise, I’ll get an error that the run is in progress (it doesn’t wait to submit). Any best practices for this?