I am pretty new to mastra as well as ai sdk and need come understanding of how things are supposed to work.
The scenario i want to achieve seems pretty straigt forward to me as shown in the docs:
- i use useChat in my nextjs frontend to call my mastra agent (ai sdk v5)
- the mastra agent then can invoke tools or workflows (or workflows from within a tool and so on)
My questions are:
- how can i populate workflow steps into AI SDK v5 messages? (text-delta etc. works fine but e.v. workflow-step-start does not arrive as a message.part)
- can i achieve a multi-turn human-in-the-loop workflow with useChat()? What do i need to do for this? (i tried using suspend in a workflow which results in a workflow-step-suspended event in the stream which is not passed to the messages as well)
Thanks for the awesome tools you are building!