M
MastraAI2w ago
vz

Error: tool-output-error must be preceded by a tool-input-available

Getting this error after upgrading mastra versions: Before with streamVNext:
"@mastra/memory": "^0.15.3",
"@mastra/loggers": "^0.10.13",
"@mastra/mcp": "^0.13.1",
"@mastra/pg": "^0.16.1",
"@mastra/core": "^0.18.0",
"@mastra/memory": "^0.15.3",
"@mastra/loggers": "^0.10.13",
"@mastra/mcp": "^0.13.1",
"@mastra/pg": "^0.16.1",
"@mastra/core": "^0.18.0",
After with stream:
"@mastra/memory": "^0.15.6",
"@mastra/loggers": "^0.10.15",
"@mastra/mcp": "^0.13.4",
"@mastra/pg": "^0.17.2",
"@mastra/core": "^0.20.2",
"@mastra/memory": "^0.15.6",
"@mastra/loggers": "^0.10.15",
"@mastra/mcp": "^0.13.4",
"@mastra/pg": "^0.17.2",
"@mastra/core": "^0.20.2",
We are using useChat from vercel ai sdk. ref: https://github.com/vercel/ai/blob/13c0552be42794b3b153ba000869bcd55bbb06e6/packages/ai/src/ui/process-ui-message-stream.ts#L107
GitHub
ai/packages/ai/src/ui/process-ui-message-stream.ts at 13c0552be4279...
The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents - vercel/ai
3 Replies
Mastra Triager
GitHub
[DISCORD:1427099487217647680] Error: tool-output-error must be prec...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1427099487217647680 Getting this error after upgrading mastra versions: Before with streamVNext: "@ma...
LekoArts
LekoArts2w ago
Can you please provide a minimal reproduction or detailed explanation on what you're doing? (provide code snippets)
vz
vzOP6d ago
Our code is tightly coupled with our business logics. but i think it should trigger for any simple tool call?

Did you find this page helpful?