copyWith method
Return a new StringMessagePromptTemplate instance with the given values.
Implementation
@override
StringMessagePromptTemplate copyWith({
final BasePromptTemplate? prompt,
}) {
return SystemChatMessagePromptTemplate(
prompt: prompt as PromptTemplate? ?? this.prompt,
);
}