Skip to main content

example_branching_workflow

Function example_branching_workflow 

Source
pub fn example_branching_workflow() -> Result<Workflow, WorkflowError>
Expand description

Creates a branching workflow with conditional paths.

Demonstrates using conditional tasks to create different execution paths based on runtime conditions.

§Example

use forge_agent::workflow::examples::example_branching_workflow;

let workflow = example_branching_workflow();
assert_eq!(workflow.task_count(), 4);