AgentSkillsProviderBuilder.UseFileSkills Method

Definition

Adds a file-based skill source that discovers skills from multiple filesystem directories.

public Microsoft.Agents.AI.AgentSkillsProviderBuilder UseFileSkills(System.Collections.Generic.IEnumerable<string> skillPaths, Microsoft.Agents.AI.AgentFileSkillsSourceOptions? options = default, Microsoft.Agents.AI.AgentFileSkillScriptRunner? scriptRunner = default);
member this.UseFileSkills : seq<string> * Microsoft.Agents.AI.AgentFileSkillsSourceOptions * Microsoft.Agents.AI.AgentFileSkillScriptRunner -> Microsoft.Agents.AI.AgentSkillsProviderBuilder
Public Function UseFileSkills (skillPaths As IEnumerable(Of String), Optional options As AgentFileSkillsSourceOptions = Nothing, Optional scriptRunner As AgentFileSkillScriptRunner = Nothing) As AgentSkillsProviderBuilder

Parameters

skillPaths
IEnumerable<String>

Paths to search for skills.

options
AgentFileSkillsSourceOptions

Optional options that control skill discovery behavior.

scriptRunner
AgentFileSkillScriptRunner

Optional runner for file-based scripts. When provided, overrides the builder-level runner set via UseFileScriptRunner(AgentFileSkillScriptRunner).

Returns

This builder instance for chaining.

Applies to