Skip to main content

generate

Method
This is a method of the WorkflowAutoGenerator class in the auto module.
Generate a workflow YAML file.

Signature

def generate(pattern: str, merge: bool) -> str

Parameters

pattern
str
default:"'sequential'"
Workflow pattern - “sequential”, “routing”, “parallel”, “loop”, “orchestrator-workers”, “evaluator-optimizer”
merge
bool
default:"False"
If True, merge with existing workflow file instead of overwriting

Returns

Returns
str
Path to the generated workflow file