Constructor SkillRemoteLoader
SkillRemoteLoader(HttpClient, string)
Initializes a new instance of the SkillRemoteLoader class.
public SkillRemoteLoader(HttpClient httpClient = null, string cacheDirectory = null)
Parameters
httpClientHttpClientOptional HTTP client to use for requests. If not provided, a new client is created.
cacheDirectorystringOptional 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);