copyWith method

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

Implementation

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