How to stream tool output?

I have an ai sdk tool used by a tool loop agent. I want to make the tool stream it’s output instead of waiting for one final result. Is this possible?