validateTemplate method
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
@override
void validateTemplate() {
checkValidPromptTemplate(
template: template,
inputVariables: inputVariables,
partialVariables: partialVariables?.keys,
);
}