generate • AI Agents Framework

generate: Generates a team structure for the specified topic.

generate

Method

</div>

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

Generates a team structure for the specified topic.

Signature

python
def generate(merge: Any) -> Any

Parameters

ParamField Any

Whether to merge with existing agents.yaml file instead of overwriting.

Returns

ResponseField Any

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

Exceptions

Exception

If the generation process fails.

Usage

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

Source

View on GitHub

praisonai/auto.py at line 1170