Table of Contents

Method GetResources

Namespace
LMKit.Agents.Skills
Assembly
LM-Kit.NET.dll

GetResources(SkillResourceType)

Gets resources of a specific type.

public IEnumerable<SkillResource> GetResources(SkillResourceType type)

Parameters

type SkillResourceType

The 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}");
}