agenerate • AI Agents Framework
agenerate: Async version of generate() – generates a team structure for the specified topic.
agenerate
Async
Method
</div>
This is a method of the AutoGenerator class in the auto module.
Async version of generate() – generates a team structure for the specified topic.
Signature
async def agenerate(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
async with AutoGenerator(framework="crewai", topic="Create a movie script about Cat in Mars") as gen:
path = await gen.agenerate()
_rich_print(path)Source
View on GitHubpraisonai/auto.py at line 1190