copyWith method

  1. @override
Agent copyWith({
  1. String? name,
  2. TMetaData? metaData,
  3. TConfig? config,
  4. String? expertise,
  5. List<Activity>? activities,
  6. List<Checklist>? checklists,
  7. List<Instruction>? instructions,
  8. List<Template>? templates,
  9. List<Tool>? tools,
  10. List<Workflow>? workflows,
  11. String? identity,
})
override

Implementation

@override
Agent copyWith({
  String? name,
  TMetaData? metaData,
  TConfig? config,
  String? expertise,
  List<Activity>? activities,
  List<Checklist>? checklists,
  List<Instruction>? instructions,
  List<Template>? templates,
  List<Tool>? tools,
  List<Workflow>? workflows,
  String? identity,
}) => Agent(
  name: name ?? this.name,
  metaData: metaData ?? this.metaData,
  config: config ?? this.config,
  expertise: expertise ?? this.expertise,
  activities: activities ?? this.activities,
  checklists: checklists ?? this.checklists,
  instructions: instructions ?? this.instructions,
  templates: templates ?? this.templates,
  tools: tools ?? this.tools,
  workflows: workflows ?? this.workflows,
  identity: identity ?? this.identity,
);