Import Template
Various LLM tools allow storing prompts in text or markdown files.
You can use importTemplate
to import these files into a prompt.
Variable interpolation
importTemplate
supports mustache variable interpolation. You can use variables in the imported template and pass them as arguments to the importTemplate
function.
Mustache supports arguments as functions. This allows you to pass dynamic values to the template.
File globs
You can specify an array of files or glob patterns.
Other File formats
Aside from the basic text or markdown formats, importTemplate
also supports these variations automatically.
Prompty
Prompty provides a simple markdown-based format for prompts. It adds the concept of role sections to the markdown format.