streamText & useChat: do not stream tool results to UI #3952
Unanswered
nazarii-klymok
asked this question in
Help
Replies: 1 comment
-
Hey! Rather than having that logic as a tool, have you thought about having it inline in whatever tool needs the sensitive data? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm using AI sdk 4.0.0 with OpenAI. Here's my code from a back-end. The result is stream to front-end where a
useChat
hook is used.:From what I can see, the result that I return during tool invocation is also streamed to the UI.
I want the tool result to be generated and used by LLM to generate a response, but I'd prefer to not return tool response back to the client. Is it possible with streamText or any other AI API?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions