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
def generate(merge: Any) -> AnyParameters
ParamField
AnyWhether to merge with existing agents.yaml file instead of overwriting.
Returns
ResponseField
AnyThe full path of the YAML file containing the generated team structure.
Exceptions
Exception
If the generation process fails.
Usage
generator = AutoGenerator(framework="crewai", topic="Create a movie script about Cat in Mars")
path = generator.generate()
_rich_print(path)Source
View on GitHubpraisonai/auto.py at line 1170