copyWith method

PromptEvaluationCriteria copyWith({
  1. String? id,
  2. String? name,
  3. String? type,
  4. String? conversationGoalPrompt,
  5. bool? useKnowledgeBase,
})

Implementation

PromptEvaluationCriteria copyWith(
    {String? id,
    String? name,
    String? type,
    String? conversationGoalPrompt,
    bool? useKnowledgeBase}) {
  return PromptEvaluationCriteria(
      id: id ?? this.id,
      name: name ?? this.name,
      type: type ?? this.type,
      conversationGoalPrompt:
          conversationGoalPrompt ?? this.conversationGoalPrompt,
      useKnowledgeBase: useKnowledgeBase ?? this.useKnowledgeBase);
}