I’m using CodeInterpreterTool with Agents SDK. It works as expected, and I know how to navigate the response to get to the annotations. And I know how to call the container APIs to download the file.
My question is, what is the best way to do that with the Agents SDK, especially if I’m streaming my response?
I need to intercept the messages, download the file, then update the message text to replace the old sandbox:/mnt/… URL with the download file URL.
Is there a standard way, such as overriding a method in the Agent or Runner class?