thread.`generateText/streamText` returns a validator error
Heya guys, I'm new! I am building a small chat app with Convex Agents and I've encountered an error that I don't seem to be able to solve:
OR
These functions (even with just
{message}
and not the whole prompt) are giving me the errors in the screenshots, ONLY if I actually save the message in the database. If I pass saveMessages: "none"
and/or saveStreamDeltas: false
the problem goes away (but streaming doesn't work and the whole flow is generally slower).
Can you help me understand what the problem is? 🙏🏽
(I can give you more context if needed!)

1 Reply
#agents its hard to tell exactly without seeing a lot of code, but there are many examples in the agents folder that should show nearly everything.
#2 is passing a array when expecting a string looks like. so you could pass the first item in the array to see what you get etc.