How to access stream from workflow as agent tool and resume workflow?
Hi, im using a workflow as part of an agent and having the agent execute a workflow.
I have the following step and the workflow does suspend but the actual agent invoking it doesnt actually wait for the workflow to resume, it just continues. Also, I dont see the writer events ever making it through to the data stream so how do I pipe the writer through when invoking via an agent.
Route handler in backend:
part of agent definition:
3 Replies
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/9501
GitHub
[DISCORD:1433125186961670185] How to access stream from workflow as...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1433125186961670185 Hi, im using a workflow as part of an agent and having the agent execute a workflow. I...
Hi @sheerazz ! There isn't really a good way to do that right now, you basically need to add guidance/instructions in your system prompt to tell the llm what to do when it encounters a suspended workflow
Hi @Romain thanks for getting back to me on this. do networks support suspend / resume? we want to embed a workflow capabilities into a native chat feel where the chat can invoke a workflow whenever needed but users can continue using the chat after the workflow. or also the chat can invoke multiple workflows sequentially