copyWith method

AgentConfigDBModel copyWith({
  1. String? firstMessage,
  2. String? language,
  3. DynamicVariablesConfig? dynamicVariables,
  4. PromptAgentDBModel? prompt,
})

Implementation

AgentConfigDBModel copyWith(
    {String? firstMessage,
    String? language,
    DynamicVariablesConfig? dynamicVariables,
    PromptAgentDBModel? prompt}) {
  return AgentConfigDBModel(
      firstMessage: firstMessage ?? this.firstMessage,
      language: language ?? this.language,
      dynamicVariables: dynamicVariables ?? this.dynamicVariables,
      prompt: prompt ?? this.prompt);
}