AgentFileSkillsSourceOptions Class

Definition

Configuration options for file-based skill sources.

public sealed class AgentFileSkillsSourceOptions
type AgentFileSkillsSourceOptions = class
Public NotInheritable Class AgentFileSkillsSourceOptions
Inheritance
AgentFileSkillsSourceOptions

Remarks

Use this class to configure file-based skill discovery without relying on positional constructor or method parameters. New options can be added here without breaking existing callers.

Constructors

Name Description
AgentFileSkillsSourceOptions()

Properties

Name Description
AllowedResourceExtensions

Gets or sets the allowed file extensions for skill resources. When null, defaults to .md, .json, .yaml, .yml, .csv, .xml, .txt.

AllowedScriptExtensions

Gets or sets the allowed file extensions for skill scripts. When null, defaults to .py, .js, .sh, .ps1, .cs, .csx.

ResourceFilter

Gets or sets a predicate that filters discovered resource files. The predicate receives an AgentFileSkillFilterContext containing the skill's name and the file's path relative to the skill directory. Return true to include the file or false to exclude it. When null, all resources matching the allowed extensions are included.

ScriptFilter

Gets or sets a predicate that filters discovered script files. The predicate receives an AgentFileSkillFilterContext containing the skill's name and the file's path relative to the skill directory. Return true to include the file or false to exclude it. When null, all scripts matching the allowed extensions are included.

SearchDepth

Gets or sets the maximum depth to search for script and resource files within each skill directory. A value of 1 searches only the skill root directory. A value of 2 searches the root and one level of subdirectories. When null, the source uses the default depth of 2.

Applies to