Skip to content

I'm having error + not sure how to handle HITL of agent that run workflow #11205

@daneatmastra

Description

@daneatmastra

This issue was created from Discord post 1450479219783110737:

Open in Discord

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions