Method HasResource
HasResource(string)
Checks if a resource exists at the specified relative path.
public bool HasResource(string relativePath)
Parameters
relativePathstringThe relative path to check.
Returns
- bool
trueif 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");
}