Replies: 2 comments 1 reply
-
|
Don't return anything. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
This discussion was automatically locked because it has not been updated in over 30 days. If you still have questions about this topic, please ask us at community.vercel.com/ai-sdk |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m building a RAG system using the Chat SDK, incorporating ideas from the AI SDK RAG Template.
My goal is for the RAG tool output to be sent directly to the model (for context injection) without rendering in the UI.
Here’s the current tool definition:
I’ve tried approaches like
dataStream.writeDataandsanitizeResponseMessagesto suppress tool output in the UI, but in if the data is not sent to the UI, it’s also not passed to the model.I’m looking for guidance on how to inject tool output into the model’s context without showing it in the chat UI.
Beta Was this translation helpful? Give feedback.
All reactions