-
is there a workaround for tools to access a state from client component? May be through useChat hook?. My requirement is that I have a tool called list_files. This tool needs to execute the file content based on the filename provided as a parameter. However, the files are stored in a zustand store on the client side. What is the best way to solve this issue? I cannot pass the entire codebase to the server, as that is not feasible. Is there a way to provide the file content to the tool based on the filename from the client side? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You could create a client-side tool to retrieve the content. |
Beta Was this translation helpful? Give feedback.
You could create a client-side tool to retrieve the content.