M
Mastra2mo ago
wiz2202

Workflow streaming output

Is there a reason that the workflow streamvnext workflow-finish objectoutput does not have the output to the whole workflow? Is the way we should be doing this to tell our front end the final step id so we can render the output?
No description
3 Replies
Mastra Triager
Mastra Triager2mo ago
GitHub
[DISCORD:1433685655342415913] Workflow streaming output · Issue #9...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1433685655342415913 Is there a reason that the workflow streamvnext workflow-finish objectoutput does not ...
_roamin_
_roamin_2mo ago
Hi @wiz2202 ! You can have several step results in one workflow run depending on how your workflow is built, so, yes, you need to look at the workflow-step-result chunks 😉
wiz2202
wiz2202OP2mo ago
@Romain I see, but we can only have 1 workflow-finish right? I guess what I’m confused abt is why workflow-finish wouldn’t return the workflow output. If that were the case then I could always render the workflow finish object in the frontend. Since it’s not in that object, I have to state which steps output we should be rendering in the complete state. Not a big deal, but just seemed like an added step of complexity and wasn’t sure why

Did you find this page helpful?