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

# Agents Generator • AI Agents Framework

> AgentsGenerator: Class reference for AgentsGenerator

# AgentsGenerator

> Defined in the [**Agents Generator**](../modules/agents_generator) module.

<Badge color="purple">AI Agents Framework</Badge>

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph LR
    input["Input Data"] --> agent["Agent: AgentsGenerator"]
    agent --> output["Output Result"]
    style agent fill:#8B0000,color:#fff
    style input fill:#8B0000,color:#fff
    style output fill:#8B0000,color:#fff
```

## Constructor

<ParamField query="agent_file" type="Any" required={true}>
  No description available.
</ParamField>

<ParamField query="framework" type="Any" required={true}>
  No description available.
</ParamField>

<ParamField query="config_list" type="Any" required={true}>
  No description available.
</ParamField>

<ParamField query="log_level" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="agent_callback" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="task_callback" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="agent_yaml" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="tools" type="Any" required={false}>
  No description available.
</ParamField>

## Methods

<CardGroup cols={2}>
  <Card title="is_function_or_decorated()" icon="function" href="../functions/AgentsGenerator-is_function_or_decorated">
    Checks if the given object is a function or has a **call** method.
  </Card>

  <Card title="load_tools_from_module()" icon="function" href="../functions/AgentsGenerator-load_tools_from_module">
    Loads tools from a specified module path.
  </Card>

  <Card title="load_tools_from_module_class()" icon="function" href="../functions/AgentsGenerator-load_tools_from_module_class">
    Loads tools from a specified module path containing classes that inherit from BaseTool
  </Card>

  <Card title="load_tools_from_package()" icon="function" href="../functions/AgentsGenerator-load_tools_from_package">
    Loads tools from a specified package path containing modules with functions or classes.
  </Card>

  <Card title="load_tools_from_tools_py()" icon="function" href="../functions/AgentsGenerator-load_tools_from_tools_py">
    Imports and returns all contents from tools.py file.
  </Card>

  <Card title="generate_crew_and_kickoff()" icon="function" href="../functions/AgentsGenerator-generate_crew_and_kickoff">
    Generates a crew of agents and initiates tasks based on the provided configuration.
  </Card>
</CardGroup>

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Agents Concept" icon="robot" href="/docs/concepts/agents" />

  <Card title="Single Agent Guide" icon="book-open" href="/docs/guides/single-agent" />

  <Card title="Multi-Agent Guide" icon="users" href="/docs/guides/multi-agent" />

  <Card title="Agent Configuration" icon="gear" href="/docs/configuration/agent-config" />

  <Card title="Auto Agents" icon="wand-magic-sparkles" href="/docs/features/autoagents" />
</CardGroup>
