copyWith method

  1. @override
PromptTemplate copyWith({
  1. Set<String>? inputVariables,
  2. Map<String, dynamic>? partialVariables,
  3. String? template,
})
override

Copy the prompt template with the given parameters.

Implementation

@override
PromptTemplate copyWith({
  final Set<String>? inputVariables,
  final Map<String, dynamic>? partialVariables,
  final String? template,
}) {
  return PromptTemplate(
    inputVariables: inputVariables ?? this.inputVariables,
    partialVariables: partialVariables ?? this.partialVariables,
    template: template ?? this.template,
  );
}