toolCallStreaming - how to use it?
Unanswered
Red-breasted Sapsucker posted this in #help-forum
Red-breasted SapsuckerOP
Hello all! Ramping up on Vercel AI SDK, I'm struggling with something I believe should be possible.
I have set up an API route that responds to user questions. So far so good. That assistant has access to tools.
The problem I'm facing is that some of these tools take a long time to complete, and I'd like to stream their responses. I see that in streamText there is toolCallStreaming option so I assume it should be feasible, but I can't figure out how to return/add the tool call stream to the main stream. Does anyone here know how this is supposed to work?
Thanks!
I have set up an API route that responds to user questions. So far so good. That assistant has access to tools.
The problem I'm facing is that some of these tools take a long time to complete, and I'd like to stream their responses. I see that in streamText there is toolCallStreaming option so I assume it should be feasible, but I can't figure out how to return/add the tool call stream to the main stream. Does anyone here know how this is supposed to work?
Thanks!
1 Reply
Japanese jack mackerel
I am wondering the same thing. I want to stream from the tool