Table of Contents

Method HasResource

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

HasResource(string)

Checks if a resource exists at the specified relative path.

public bool HasResource(string relativePath)

Parameters

relativePath string

The relative path to check.

Returns

bool

true if the resource exists; otherwise, false.

Examples

Checking for resource availability before loading:

var skill = AgentSkill.Load("./skills/api-designer");
if (skill.HasResource("templates/openapi.yaml"))
{
    Console.WriteLine("OpenAPI template is available");
}