Skip to main content

generate

Method
This is a method of the AutoGenerator class in the auto module.
Generates a team structure for the specified topic.

Signature

def generate(merge: Any) -> Any

Parameters

merge
Any
default:"False"
Whether to merge with existing agents.yaml file instead of overwriting.

Returns

Returns
Any
The full path of the YAML file containing the generated team structure.

Exceptions

If the generation process fails.

Usage

generator = AutoGenerator(framework="crewai", topic="Create a movie script about Cat in Mars")
    path = generator.generate()
    print(path)