> ## 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() - Generate a job workflow YAML file.

# agenerate

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**JobWorkflowAutoGenerator**](../classes/JobWorkflowAutoGenerator) class in the [**auto**](../modules/auto) module.

Async version of generate() - Generate a job workflow YAML file.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def agenerate(include_judge: bool, include_approve: bool) -> str
```

## Parameters

<ParamField query="include_judge" type="bool" required={false} default="True">
  Include a judge step for quality gating
</ParamField>

<ParamField query="include_approve" type="bool" required={false} default="False">
  Include an approve step for human approval
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  Path to the generated workflow file
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/auto.py#L1932">
  `praisonai/auto.py` at line 1932
</Card>
