Class FileSystemToolOptions
Configuration options shared by all filesystem tools.
public sealed class FileSystemToolOptions
- Inheritance
-
FileSystemToolOptions
- Inherited Members
Examples
Sandboxing all filesystem tools to a single project directory:
using LMKit.Agents.Tools.BuiltIn.IO;
var options = new FileSystemToolOptions
{
AllowedPaths = new HashSet<string> { @"C:\projects\sandbox" }
};
var read = new FileSystemReadTool(options);
var write = new FileSystemWriteTool(options);
Properties
- AllowedPaths
Gets or sets allowed paths. If set, only these paths and their subdirectories are accessible.
- BlockedPaths
Gets or sets blocked paths. These paths and subdirectories cannot be accessed.
- MaxFileSize
Gets or sets the maximum file size for read operations. 0 for unlimited. Default is 10MB.
- MaxListItems
Gets or sets the maximum items returned in list operations. Default is 1000.