copyWith method
ChatPromptTemplate
copyWith({
- Set<
String> ? inputVariables, - PartialValues? partialVariables,
- List<
ChatMessagePromptTemplate> ? promptMessages,
override
Creates a copy of this ChatPromptTemplate with the given fields.
Implementation
@override
ChatPromptTemplate copyWith({
final Set<String>? inputVariables,
final PartialValues? partialVariables,
final List<ChatMessagePromptTemplate>? promptMessages,
}) {
return ChatPromptTemplate(
inputVariables: inputVariables ?? this.inputVariables,
partialVariables: partialVariables ?? this.partialVariables,
promptMessages: promptMessages ?? this.promptMessages,
);
}