Custom Prompts

Named custom prompt templates defined in the main configuration file live in a top-level prompts: section — the profile-folder form (where each prompt lives in its own file or file group) with full details and more examples is on the Custom Prompts pages.

  • prompts: Define named custom parametrized prompt templates (auto-loaded when Enkaidu starts).
    • <prompt_name>:
      • description: A description of the prompt
      • arguments: (optional) A named map of arguments, each <arg_name>: having a description: for the argument
      • template: A string template based on the Liquid templating language as implemented by the liquid.cr Crystal shard. Arguments are available with the arg. prefix; profile variables with the var. prefix; and system properties via the sys. prefix
prompts:
  define:
    description: Define a word or phrase
    arguments:
      word:
        description: |
          What do you want to define?
    template: |
      Define the meaning of "{{ word }}".
      If there are multiple definitions,
      present them as a list.

When you invoke this example prompt at the prompt input as /prompt use define, Enkaidu will prompt you to enter the word or phrase.