generate • AI Agents Framework

generate: Generate a workflow YAML file.

generate

Method

</div>

This is a method of the WorkflowAutoGenerator class in the auto module.

Generate a workflow YAML file.

Signature

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

Parameters

ParamField str

Workflow pattern – “sequential”, “routing”, “parallel”, “loop”, “orchestrator-workers”, “evaluator-optimizer”

ParamField bool

If True, merge with existing workflow file instead of overwriting

Returns

ResponseField str

Path to the generated workflow file

Source

View on GitHub

praisonai/auto.py at line 1822