Skip to main content

How to Run an Existing Recipe

1

List Available Recipes

praisonai recipe list
2

Get Recipe Info

praisonai recipe info ai-video-editor
3

Run Recipe with Variables

praisonai recipe run ai-video-editor --var input=video.mp4 --var output=edited.mp4
4

View Output

Check the generated output in your working directory or specified output path.

How to Run Recipes from GitHub

1

Run Directly from GitHub

praisonai recipe run github:MervinPraison/Agent-Recipes/ai-video-editor
2

Run with Custom Branch

praisonai recipe run github:MervinPraison/Agent-Recipes/ai-video-editor@main
3

Run with Variables

praisonai recipe run github:MervinPraison/Agent-Recipes/ai-video-editor --var input=video.mp4

How to Run Recipes with Python

1

Import and Run

from praisonaiagents import Agent, AgentTeam
import yaml

# Load recipe
with open("agents.yaml") as f:
    config = yaml.safe_load(f)

# Run agents based on config

Common Recipe Variables

RecipeVariablesExample
ai-video-editor--var input, --var output--var input=video.mp4
research-agent--var topic, --var depth--var topic="AI trends"
code-reviewer--var repo, --var branch--var repo=./myproject

CLI Options

praisonai recipe run <recipe> [OPTIONS]

Options:
  --var KEY=VALUE        Set variable value
  --verbose              Enable verbose output