> ## 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.

# Generate Crew And Kickoff • AI Agents Framework

> generate_crew_and_kickoff: Generates a crew of agents and initiates tasks based on the provided configuration.

# generate\_crew\_and\_kickoff

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

> This is a method of the [**AgentsGenerator**](../classes/AgentsGenerator) class in the [**agents\_generator**](../modules/agents_generator) module.

Generates a crew of agents and initiates tasks based on the provided configuration.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def generate_crew_and_kickoff() -> Any
```

### Returns

<ResponseField name="Returns" type="Any">
  The output of the tasks performed by the crew of agents.
</ResponseField>

### Exceptions

<AccordionGroup>
  <Accordion title="FileNotFoundError">
    If the specified agent file does not exist.
  </Accordion>
</AccordionGroup>

## Uses

* `yaml.safe_load`
* `title`
* `CodeDocsSearchTool`
* `CSVSearchTool`
* `DirectorySearchTool`
* `DOCXSearchTool`
* `DirectoryReadTool`
* `FileReadTool`
* `TXTSearchTool`
* `JSONSearchTool`

## Used By

* [`run_agents`](../functions/run_agents)
* [`main`](../functions/main)

## Source

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