MastraM
Mastra•2w ago
freny87

Workflows with suspend/resume cannot be called by Agents

I have an agent which can use a workflow, which in itself has some steps that ask for HIL input, calling for some suspend and resume. The issue is that there's no current way of giving that input from the Mastra Studio right now. Even if I manually go into the workflow thread and put the values there, the main thread where I have the conversation doesn't get updated with that information.
Expected behavior from my UX point of view would be:
  • If a workflow is suspended, for the agent to be able to consume more messages
  • The agent being able to use the information from those new messages to interact with the suspended workflow and resume it.
  • The agent view from Mastra Studio should see the state of the workflow at all times.
I'm using the latest version of the beta with the following packages:
"@mastra/core": "1.0.0-beta.8",
"@mastra/evals": "1.0.0-beta.2",
"@mastra/libsql": "1.0.0-beta.5",
"@mastra/loggers": "1.0.0-beta.3",
"@mastra/memory": "1.0.0-beta.4",
"@mastra/observability": "1.0.0-beta.3",
Was this page helpful?