Skip to main content
The run command executes agents from YAML configuration files or direct prompts.

Usage

praisonai run [OPTIONS] [TARGET]

Arguments

ArgumentDescription
TARGETAgent file (YAML) or direct prompt text

Options

OptionShortDescriptionDefault
--model-mLLM model to usegpt-4o-mini
--framework-fFramework: praisonai, crewai, autogenpraisonai
--interactive-iEnable interactive modefalse
--verbose-vVerbose outputfalse
--streamStream outputtrue
--no-streamDisable streaming
--traceEnable tracingfalse
--memoryEnable memoryfalse
--tools-tTools file path
--max-tokensMaximum output tokens16000

Examples

Run from YAML file

praisonai run agents.yaml

Run with a prompt

praisonai run "What is the capital of France?"

Run with specific model

praisonai run "Explain quantum computing" --model gpt-4o

Run in interactive mode

praisonai run agents.yaml --interactive

Run with memory enabled

praisonai run "Remember my name is John" --memory

Run with verbose output

praisonai run agents.yaml --verbose

Run with custom tools

praisonai run agents.yaml --tools tools.py

Agent File Format

Create an agents.yaml file:
framework: praisonai
topic: Research Assistant
roles:
  researcher:
    backstory: Expert research analyst
    goal: Find accurate information
    role: Researcher
    tasks:
      research_task:
        description: Research the given topic
        expected_output: Comprehensive research summary

See Also