AgentSkillsProviderBuilder.UseFileSkill Method

Definition

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

public Microsoft.Agents.AI.AgentSkillsProviderBuilder UseFileSkill(string skillPath, Microsoft.Agents.AI.AgentFileSkillsSourceOptions? options = default, Microsoft.Agents.AI.AgentFileSkillScriptRunner? scriptRunner = default);
member this.UseFileSkill : string * Microsoft.Agents.AI.AgentFileSkillsSourceOptions * Microsoft.Agents.AI.AgentFileSkillScriptRunner -> Microsoft.Agents.AI.AgentSkillsProviderBuilder
Public Function UseFileSkill (skillPath As String, Optional options As AgentFileSkillsSourceOptions = Nothing, Optional scriptRunner As AgentFileSkillScriptRunner = Nothing) As AgentSkillsProviderBuilder

Parameters

skillPath
String

Path 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