-
I'm having trouble integrating streamText on my server with useChat on my client. Specifically, I'm struggling with the execution functions within the tools object. When I include the execute functions in the tools object for streamText on the server, they work as expected. However, if I leave these functions out on the server, hoping to handle them on the client side instead, nothing happens. It appears that useChat expects a differently formatted tools object compared to streamText. I suspect this discrepancy might be causing the issue, but I'm not sure how to resolve it. Does anyone have experience or a working example of using tools objects with useChat that they could share? Any assistance or pointers would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Working on it: #1514 |
Beta Was this translation helpful? Give feedback.
-
Check out this guide for client-side tool calling with |
Beta Was this translation helpful? Give feedback.
Check out this guide for client-side tool calling with
useChat
: https://sdk.vercel.ai/docs/ai-sdk-ui/chatbot-with-tool-calling