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?