Skip to main content

WorkflowAutoGenerator

Defined in the auto module.
AI Agents Framework Auto-generates workflow.yaml files from a topic description. Inherits from BaseAutoGenerator for shared LLM client functionality.

Constructor

topic
str
default:"'Research and write about AI'"
No description available.
workflow_file
str
default:"'workflow.yaml'"
No description available.
config_list
Optional
No description available.
framework
str
default:"'praisonai'"
No description available.
single_agent
bool
default:"False"
No description available.

Methods

recommend_pattern()

Recommend the best workflow pattern based on task characteristics.

recommend_pattern_llm()

Use LLM to recommend the best workflow pattern with reasoning.

generate()

Generate a workflow YAML file.

merge_with_existing_workflow()

Merge new workflow data with existing workflow file.

Usage

generator = WorkflowAutoGenerator(topic="Research AI trends and write a report")
    path = generator.generate()

Source

View on GitHub

praisonai/auto.py at line 1018

AgentFlow Concept

Workflow Patterns

Routing

Workflows Feature

YAML Workflows