Auto Generation Mode

Automatically generate and run agents from a topic

Auto mode generates agents from a topic and runs them immediately.

Basic Usage

bash
python -m praisonai --auto "your topic here"

Example:

bash
python -m praisonai --auto "write a haiku about AI"

Output:

╭─ Agent Info ─────────────────────────────────────────────────────────────────╮
│  👤 Agent: Poet                                                              │
│  Role: Poet                                                                  │
╰──────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────── Task ────────────────────────────────────╮
│ Compose a haiku that reflects themes about AI                                │
╰──────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────── Response ──────────────────────────────────╮
│ Silent circuits bloom                                                        │
│ patterns grow from data streams                                              │
│ humans and machines                                                          │
╰──────────────────────────────────────────────────────────────────────────────╯

With Different Frameworks

bash
# CrewAI
python -m praisonai --framework crewai --auto "research AI trends"

# AG2 (AutoGen)
python -m praisonai --framework autogen --auto "research AI trends"

# LangGraph
python -m praisonai --framework langgraph --auto "research AI trends"

How It Works

  1. Analyzes your topic complexity
  2. Creates 1-4 agents with appropriate roles
  3. Assigns relevant tools automatically
  4. Runs the agents immediately

Auto uses LiteLLM if installed (100+ providers), with OpenAI as a fallback. A transient rate-limit or 5xx on LiteLLM is retried briefly before OpenAI fallback is tried. See Auto Mode Providers.

Init Only (No Run)

To generate agents.yaml without running:

bash
python -m praisonai --init "your topic"

Then edit agents.yaml and run later:

bash
python -m praisonai

Merge with Existing

Add new agents to existing agents.yaml:

bash
python -m praisonai --merge --init "add a reviewer agent"

Examples

bash
# Simple task
python -m praisonai --auto "explain quantum computing"

# Research task
python -m praisonai --auto "research latest AI developments"

# Creative task
python -m praisonai --auto "write a short story about robots"

# Analysis task
python -m praisonai --auto "analyze pros and cons of remote work"