async def get_final_run(self) -> Run:
        """Wait for the stream to finish and returns the completed Run object"""
        await self.until_done()

        if not self.__current_run:
            raise RuntimeError("No final run object found")

        return self.__current_run
Wait for the stream to finish and returns the completed Run object
src/openai/lib/streaming/_assistants.py