validateTemplate method

void validateTemplate()

Validate the integrity of the prompt template, checking that all the variables are present and that the right format is used.

Throws a TemplateValidationException if the template is not valid.

Implementation

void validateTemplate() {
  throw UnimplementedError(
    'This method should be implemented by subclasses.',
  );
}