Open masci opened 3 months ago
I guess I'd also be wary of the complexity needed to implement a stop function.
What does it need access to? Context? List of events already emitted? List of steps already run? Not sure actually 🤔
Hi, @masci. I'm Dosu, and I'm helping the LlamaIndex team manage their backlog. I'm marking this issue as stale.
Issue Summary:
StopEvent
.Next Steps:
Thank you for your understanding and contribution!
@dosubot keep it open
Feature Description
Find a better way to terminate a normal workflow execution.
Reason
Individual steps should remain mostly unaware of the wider workflow, while at the moment they can halt a run by emitting the special
StopEvent
. A higher-level function should determine the “done” condition, while steps can emit errors/abort signals for exceptional circumstances.Value of Feature
A more robust event-driven architecture for workflows.