validateTemplate method

  1. @override
void validateTemplate()
override

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() {
  checkValidChatPromptTemplate(
    promptMessages: promptMessages,
    inputVariables: inputVariables,
    partialVariables: partialVariables?.keys,
  );
}