Skip to main content

generate

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

Signature

Parameters

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

Returns

str
Path to the generated workflow file

Uses

  • json.loads
  • response.model_dump_json
  • exists
  • merge_with_existing_workflow

Used By

Source

View on GitHub

praisonai/auto.py at line 1129