You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workflows sometimes need to terminate early or skip certain steps based on runtime conditions. Currently, there's no way to exit a workflow early or conditionally skip sections without complex workarounds, leading to inefficient execution paths and unnecessary processing.
Proposed Solution
Implement early exit and skip mechanisms to provide more control over workflow execution:
Early Exit Pattern
steps:
- validate_input
-
exit_if: "{{output.validate_input.fatal_error}}"message: "Terminating workflow due to fatal input error"
- process_data
This would also really helpful if this construct was exposed to tools so that a particular tool call could be used by the LLM to end the workflow itself
Early Exit and Skip Controls for Workflows
Background
Workflows sometimes need to terminate early or skip certain steps based on runtime conditions. Currently, there's no way to exit a workflow early or conditionally skip sections without complex workarounds, leading to inefficient execution paths and unnecessary processing.
Proposed Solution
Implement early exit and skip mechanisms to provide more control over workflow execution:
Early Exit Pattern
Skip Steps Pattern
Implementation Details
Exit Control
Skip Control
Integration with State Management
Workflow Validation
Technical Approach
Acceptance Criteria
Related Issues
Parent Epic: #46 Enhanced Control Flow for Roast Workflows
The text was updated successfully, but these errors were encountered: