Class SpreadsheetToolOptions
Configuration options shared by all spreadsheet tools.
public sealed class SpreadsheetToolOptions
- Inheritance
-
SpreadsheetToolOptions
- Inherited Members
Examples
Limiting spreadsheet tools to read-only access on a specific folder:
using LMKit.Agents.Tools.BuiltIn.Data;
var options = new SpreadsheetToolOptions
{
AllowWrite = false,
AllowedPaths = new HashSet<string> { @"C:\reports" }
};
Properties
- AllowWrite
Gets or sets whether write operations are allowed. Default is
falsefor safety. Set totrueto enable the write and create tools.
- AllowedPaths
Gets or sets allowed paths for spreadsheet files. When set, only files within these directories are accessible.
nullor empty allows all paths.
- BlockedPaths
Gets or sets blocked paths for spreadsheet files. Files within these directories cannot be accessed.
- MaxFileSize
Gets or sets the maximum file size in bytes for spreadsheet operations. Default is 50 MB. Set to 0 for unlimited.
- MaxRows
Gets or sets the maximum number of rows returned by read and export operations. Default is 1000. Set to 0 for unlimited.