I'm using the AI SDK v5 useChat to setup an interface to Mastra agents. I'm trying to also use the client side tools to show React components based on tool actions. What I'm finding when I console log the messages is taht all I get is type == text and I see no tool calls making it from the mastra agent.
I've got console logs in the tools and all are working fine and I see the results in the output from the agent but I have no tool calls coming across
I tried to follow Tool Streaming and expose them via the writer but I just get type errors in the client.
Has anyone gotten client side tools working with mastra?
Thanks!