Auto Generation Mode
Automatically generate and run agents from a topic
Auto mode generates agents from a topic and runs them immediately.
Basic Usage
python -m praisonai --auto "your topic here"Example:
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
# 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
- Analyzes your topic complexity
- Creates 1-4 agents with appropriate roles
- Assigns relevant tools automatically
- 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:
python -m praisonai --init "your topic"Then edit agents.yaml and run later:
python -m praisonaiMerge with Existing
Add new agents to existing agents.yaml:
python -m praisonai --merge --init "add a reviewer agent"Examples
# 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"