Error: tool-output-error must be preceded by a tool-input-available
Getting this error after upgrading mastra versions:
Before with streamVNext:
After with stream:
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
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/8776
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...
Can you please provide a minimal reproduction or detailed explanation on what you're doing? (provide code snippets)
Our code is tightly coupled with our business logics. but i think it should trigger for any simple tool call?