The string to apply the placeholder to.
Optional
context: { The string with the placeholder applied.
The category of the placeholder, used to inform design decisions.
Whether or not the placeholder has a constant value during the placeholder substitution process. For example, users can use multiple URL placeholders, therefore it is not constant, while {{clipboardText}} is constant for the duration of the substitution process.
Optional
dependencies?: string[]The dependencies of the placeholder. When placeholders are applied in bulk, this list is used to determine the order in which placeholders are applied.
The description of the placeholder, shown when the placeholder is detected in a prompt.
The example usage of the placeholder, shown when the placeholder is detected in a prompt.
The function that applies the placeholder to a string. This function is used when the placeholder is used a {{js:...}} placeholder.
Rest
...args: (never | string)[]The full name representation of the placeholder, properly spaced.
The demonstration representation of the placeholder, shown as the "name" of the placeholder when the placeholder is detected in a prompt.
The detailed name of the placeholder.
The regex pattern that matches the placeholder, including any aliases.
Optional
result_The keys of the result object relevant to the placeholder. When placeholders are applied in bulk, this list is used to determine which keys to return as well as to make optimizations when determining which placeholders to apply. The first key in the list is the key for the placeholder's value.
Optional
rules?: ((str, context?) => Promise<boolean>)[]Rules that determine whether or not a placeholder is relevant in a given context.
The type of the placeholder, used to inform design decisions.
Generated using TypeDoc
The function that applies the placeholder to a string.