Skip to main content

How to Update a Template

1

Check Current Version

praisonai templates info my-template
2

Edit TEMPLATE.yaml

Update the version and make changes:
# TEMPLATE.yaml
name: my-template
version: "1.1.0"  # Increment version
description: "Updated description"
3

Validate Changes

praisonai templates validate ./my-template
4

Test Updated Template

praisonai templates run ./my-template --task "Test task"

How to Edit Template Variables

1

View Current Variables

praisonai templates info my-template --show-variables
2

Add New Variables

# TEMPLATE.yaml
variables:
  task:
    description: "Main task"
    required: true
  output_format:
    description: "Output format"
    default: "markdown"
  verbose:
    description: "Enable verbose output"
    default: false
    type: boolean
3

Use Variables in agents.yaml

roles:
  agent:
    tasks:
      main_task:
        description: |
          Task: {{task}}
          Format: {{output_format}}
          Verbose: {{verbose}}

How to Delete a Template

1

List Installed Templates

praisonai templates list --installed
2

Remove Template

praisonai templates remove my-template
3

Verify Removal

praisonai templates list

How to Clone and Modify a Template

1

Clone Existing Template

praisonai templates clone ai-video-editor my-video-editor
2

Modify Cloned Template

cd my-video-editor
# Edit TEMPLATE.yaml, agents.yaml as needed
3

Run Modified Template

praisonai templates run ./my-video-editor --input video.mp4

Template Management Commands

CommandDescription
praisonai templates listList all templates
praisonai templates info <name>Show template details
praisonai templates validate <path>Validate template
praisonai templates clone <src> <dest>Clone template
praisonai templates remove <name>Remove template