Table of Contents

Constructor SkillRemoteLoader

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

SkillRemoteLoader(HttpClient, string)

Initializes a new instance of the SkillRemoteLoader class.

public SkillRemoteLoader(HttpClient httpClient = null, string cacheDirectory = null)

Parameters

httpClient HttpClient

Optional HTTP client to use for requests. If not provided, a new client is created.

cacheDirectory string

Optional directory for caching downloaded skills. Defaults to DefaultCacheDirectory.

Examples

Creating a SkillRemoteLoader with default and custom settings:

// Default configuration
using var loader = new SkillRemoteLoader();

// Custom cache directory
using var customLoader = new SkillRemoteLoader(
    cacheDirectory: "./my-skills-cache");

// Shared HttpClient for efficiency
var httpClient = new HttpClient();
using var sharedLoader = new SkillRemoteLoader(httpClient);