[AI agent] tool call status update
Hello! loving experimenting with the AI agent component, literally built a chatbot in a afternoon, but I am a bit confused when I am supposed to 'complete' a message since after tool calls, it goes to 'pending' then to 'failed' once I do a followup message so not sure where in the flow i am supposed to call the API? For more context, for text messages without tool calls it seems ok
currently this is my setup. (truncated for brevity). Any help would be appreciated!
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!
FYI following up, I think it has sth to do with text streaming? Like
this works,
but this does not change status to success
sorry just using this as a notepad now but if i explicitly complete the message after the stream it works. Not sure if that is the intended level of abstraction or if the framework is missing something to update the status once stream has ended?