AgentsGenerator Module
The AgentsGenerator module generates and runs agents from YAML configuration files, supporting multiple frameworks.Supported Frameworks
- PraisonAI Agents (recommended)
- CrewAI
- AutoGen
- AutoGen v4
Import
Quick Example
Constructor
AgentsGenerator(config, framework)
Creates a new AgentsGenerator instance.
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
config | str | Required | Path to YAML file or YAML string |
framework | str | "praisonai" | Framework to use |
YAML Configuration
Basic Structure
Full Example
Methods
run()
Run the configured agents and tasks.
Returns: str - The final output
generate_agents()
Generate agent instances without running.
Returns: list - List of agent instances
generate_tasks()
Generate task instances without running.
Returns: list - List of task instances
Framework Selection
PraisonAI (Default)
CrewAI
AutoGen
Tools Configuration
Built-in Tools
Custom Tools
Example: Programmatic Usage
Related
- Auto Module - Auto-generate agents
- Agents Module - Core agents
- CLI Agents - CLI agent commands

