Replies: 1 comment
-
|
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.
-
Problem
I have a React application using the AI SDK where I need to provide current React state (unsaved document content) as context to specific AI tools (so ai can modify that state, which is still not in the db, only in react state), but I don't want to send this context with every message - only when certain tools are called that actually need it.
I have tools like createSlide and updateSlide that need to be aware of this state to make contextual decisions, but other tools like weather don't need it.
Current Setup
Question
What's the recommended way to:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions