Skill.fromFile constructor
Skill.fromFile(
- String name,
- String template, {
- SkillMetadata? metadata,
Create a skill from a template file
Implementation
factory Skill.fromFile(
String name,
String template, {
SkillMetadata? metadata,
}) {
return Skill(
name: name,
description: metadata?.description ?? '',
template: template,
metadata: metadata ?? SkillMetadata.defaults,
);
}