Skip to main content
The praisonai agents command allows you to define and run multiple agents directly from the command line without creating a YAML configuration file.

Quick Start

Commands

Run Agents

Execute one or more agents with a specified task.
Required Options: Optional Options:

List Available Tools

List all tools that can be assigned to agents.
Output:

Agent Definition Format

Agents are defined using a colon-separated format:

Examples

Usage Examples

Single Agent

Multiple Agents (Sequential)

Agents execute one after another, passing context between them.

Multiple Agents (Parallel)

Agents execute simultaneously for faster results.

With Custom LLM

With Additional Instructions

Data Analysis Pipeline

Code Development

Available Tools

Execution Modes

Sequential (Default)

Agents execute one after another. Each agent receives the context from previous agents.

Parallel

Agents execute simultaneously. Useful for independent tasks.

Output

The command displays:
  1. Agent information (name, role)
  2. Task description
  3. Agent responses
  4. Final result
Example Output:

Comparison with agents.yaml

Tips

  1. Start Simple: Begin with a single agent, then add more as needed
  2. Use Descriptive Roles: Clear roles help agents understand their purpose
  3. Match Tools to Tasks: Only assign tools that are relevant to the task
  4. Sequential for Dependencies: Use sequential mode when agents depend on each other
  5. Parallel for Speed: Use parallel mode for independent tasks

Troubleshooting

Agent Not Using Tools

Ensure the tool name is spelled correctly and the tool is available:

Task Not Completing

Try adding more specific instructions:

Model Errors

Specify a different model: