Using the EventHandler class for streaming Assistants run to frontend

Does anyone have experience using some EventHandler class to stream responses through a frontend template in Django or Flask?

There is very little documentation on this topic, and it only shows how to print output in the console.

I have tried building buffers and iterators with Django, but nothing seems to work properly.

If anyone has any experience with this, I would appreciate your insights.


1 Like

Iā€™m having the exact same issue right now!
I tried adding the websocket to the EventHandler but running into all kinds of issues there.