copyWith method
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,
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,
);