> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# agenerate • AI Agents Framework

> agenerate: Async version of generate() - generates a team structure for the specified topic.

# agenerate

AsyncMethod

> This is a method of the [**AutoGenerator**](https://praison.ai/docs/sdk/reference/praisonai/classes/AutoGenerator.md) class in the [**auto**](https://praison.ai/docs/sdk/reference/praisonai/modules/auto.md) module.

Async version of generate() - generates a team structure for the specified topic.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def agenerate(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

> [accordion] Exception
>
> If the generation process fails.

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async with AutoGenerator(framework="crewai", topic="Create a movie script about Cat in Mars") as gen:
        path = await gen.agenerate()
        _rich_print(path)
```

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/auto.py#L1190)
>
> `praisonai/auto.py` at line 1190


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.