Agent does not continue after tool result
Hey,
I have an agent set up with a rag-search tool.
I am building a multi tenant system so I create my Agent with its tenant-context-tool on demand for each request.
I have a simple streaming setup pretty much straight out of the docs.
When I send a message to the agent I can see it calls the search tool, I can see the tool responds with some text from the RAG search.
The issue is that the thread stops here - the agent does not pick up on the tool-result - and does not generate the actual response for the user.
Any thoughts?
Thanks
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Looks like I was missing
maxSteps
definition on my Agent