Method GetResources
GetResources(SkillResourceType)
Gets resources of a specific type.
public IEnumerable<SkillResource> GetResources(SkillResourceType type)
Parameters
typeSkillResourceTypeThe type of resources to retrieve.
Returns
- IEnumerable<SkillResource>
A filtered list of resources matching the specified type.
Examples
Retrieving only script resources from a skill:
var skill = AgentSkill.Load("./skills/code-migrator");
// Get only script resources
var scripts = skill.GetResources(SkillResourceType.Script);
foreach (var script in scripts)
{
string code = script.GetContent();
Console.WriteLine($"Script: {script.FileName}");
}