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

python
async def agenerate(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
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 GitHub

praisonai/auto.py at line 1190