Tool Streaming Inside Mastra Doesn't Work
I am trying to create a tool that in turn calls a different agent to do some work and stream the output, I am following this doc
https://mastra.ai/en/docs/streaming/tool-streaming#S:0 to do that but unfortunately it breaks and says
Current mastra versions
https://mastra.ai/en/docs/streaming/tool-streaming#S:0 to do that but unfortunately it breaks and says
"error": "Cannot read properties of undefined (reading 'textStream')"Current mastra versions
├── @mastra/ai-sdk@0.2.3
├── @mastra/client-js@0.16.2
├── @mastra/core@0.22.2
├── @mastra/langfuse@0.1.2
├── @mastra/loggers@0.10.17
├── @mastra/mcp@0.13.5 overridden
├── @mastra/memory@0.15.8
├── @mastra/pg@0.17.5
├── @mastra/rag@1.3.2
├── @mastra/upstash@0.15.6
Learn how to use tool streaming in Mastra, including handling tool calls, tool results, and tool execution events during streaming.