SkillDefinition constructor

const SkillDefinition({
  1. required String name,
  2. required String description,
  3. required String promptContent,
  4. required String filePath,
  5. String? whenToUse,
  6. Set<String>? allowedTools,
  7. String? model,
  8. String? argumentHint,
  9. List<String>? argNames,
  10. bool userInvocable = true,
  11. bool disableModelInvocation = false,
  12. String? context,
  13. String? agent,
  14. SkillSource source = SkillSource.user,
})

Implementation

const SkillDefinition({
  required this.name,
  required this.description,
  required this.promptContent,
  required this.filePath,
  this.whenToUse,
  this.allowedTools,
  this.model,
  this.argumentHint,
  this.argNames,
  this.userInvocable = true,
  this.disableModelInvocation = false,
  this.context,
  this.agent,
  this.source = SkillSource.user,
});