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

> Module reference for agents_generator

# agents\_generator

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

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonai import agents_generator
```

## Classes

<CardGroup cols={2}>
  <Card title="ToolTimeoutError" icon="brackets-curly" href="../classes/ToolTimeoutError">
    Raised when a wrapped tool exceeds its per-call timeout.
  </Card>

  <Card title="AgentsGenerator" icon="brackets-curly" href="../classes/AgentsGenerator">
    Class definition.
  </Card>
</CardGroup>

## Functions

<CardGroup cols={2}>
  <Card title="safe_format()" icon="function" href="../functions/safe_format">
    Safe string formatting that preserves JSON/dict literals while substituting variables.
  </Card>
</CardGroup>

### Constants

| Name                            | Value                                                                                                                                                                                                         |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `_AVAIL`                        | `{'PRAISONAI_TOOLS_AVAILABLE': 'praisonai_tools', 'CREWAI_AVAILABLE': 'crewai', 'AUTOGEN_AVAILABLE': 'autogen', 'AG2_AVAILABLE': 'ag2', 'PRAISONAI_AVAILABLE': 'praisonaiagents', 'AGENTOPS_AVAILABLE': '...` |
| `_DEFAULT_TOOL_TIMEOUT_WORKERS` | `32`                                                                                                                                                                                                          |
| `_TIMEOUT_MARKER`               | `'__praisonai_timeout_wrapped__'`                                                                                                                                                                             |
| `_TIMEOUT_ORIGINAL`             | `'__praisonai_timeout_original__'`                                                                                                                                                                            |
| `_TIMEOUT_PROXY_TYPES_LOCK`     | `threading.Lock()`                                                                                                                                                                                            |

***

## Related Documentation

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

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

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

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

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