Skip to content

PromptScript API


Variable: RESERVED_WORDS

const RESERVED_WORDS: readonly ["meta", "inherit", "use", "extend", "identity", "context", "standards", "restrictions", "knowledge", "shortcuts", "guards", "params", "skills", "local", "agents", "workflows", "prompts", "as", "true", "false", "null", "string", "number", "boolean", "list", "range", "enum"]

Defined in: core/src/types/constants.ts:42

Reserved words in PromptScript that cannot be used as identifiers.

Example

if (RESERVED_WORDS.includes(identifier)) {
  throw new Error(`'${identifier}' is a reserved word`);
}