-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
General InquiryWorkflowsAll things Mastra Workflows and different execution engines.All things Mastra Workflows and different execution engines.discordFor issues created from Discord discussions.For issues created from Discord discussions.effort:lowimpact:mediumstatus: waiting for authortrio-tnt
Description
This issue was created from Discord post 1450479219783110737:
Heya, I'm having error + not sure how to handle HITL of agent that run workflow.
//Agent call
await emailAgent.generate(prompt);
//Agent definition
export const emailAgent = new Agent({
workflows: {
emailProcessingWorkflow,
},
........
// Workflow step
if (!resumeData) {
return suspend({.....
I get error:
Error processing email: Error: promise 'steps' was not resolved or rejected when stream finished
What would be the correct way to have workflow with HITL in agent? And what if agent is not streaming?
coderabbitai
Metadata
Metadata
Assignees
Labels
General InquiryWorkflowsAll things Mastra Workflows and different execution engines.All things Mastra Workflows and different execution engines.discordFor issues created from Discord discussions.For issues created from Discord discussions.effort:lowimpact:mediumstatus: waiting for authortrio-tnt