Skip to main content

CLI Module

The CLI module provides the main PraisonAI class for running agents from YAML configurations and command-line.

Installation

PraisonAI Class

Main entry point for running PraisonAI agents.

Constructor

If neither --framework CLI flag nor YAML framework: key is set, PraisonAI defaults to the praisonai adapter.

Methods

run()

Execute the agents defined in the configuration.
Returns: Agent execution result (string or structured output)

main()

CLI entry point method.

CLI Usage

CLI Flags

YAML Configuration

Programmatic Usage

With Tools

With YAML String

See Also