copyWith method

  1. @override
ChatMessagePromptTemplate copyWith({
  1. BasePromptTemplate? prompt,
  2. String? variableName,
})
override

Return a new ChatMessagePromptTemplate instance with the given values.

Implementation

@override
ChatMessagePromptTemplate copyWith({
  final BasePromptTemplate? prompt,
  final String? variableName,
}) {
  return MessagesPlaceholder(
    variableName: variableName ?? this.variableName,
  );
}