Skip to main content

example_linear_workflow

Function example_linear_workflow 

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

Creates a linear workflow that executes tasks sequentially.

Each task depends on the previous task, creating a straight-line execution path.

§Example

use forge_agent::workflow::examples::example_linear_workflow;

let workflow = example_linear_workflow();
assert_eq!(workflow.task_count(), 3);