partial method
Return a partial of the prompt template.
Implementation
BasePromptTemplate partial(final PartialValues values) {
final newInputVariables = inputVariables
.where((final variable) => !values.keys.contains(variable))
.toSet();
final newPartialVariables = {
...?partialVariables,
...values,
};
return copyWith(
inputVariables: newInputVariables,
partialVariables: newPartialVariables,
);
}