Table of Contents

Class FileSystemInfoTool

Namespace
LMKit.Agents.Tools.BuiltIn.IO
Assembly
LM-Kit.NET.dll

Gets metadata about a file or directory (size, dates, existence).

public sealed class FileSystemInfoTool : IBuiltInTool, ITool, IToolMetadata
Inheritance
FileSystemInfoTool
Implements
Inherited Members

Examples

Letting an agent check whether a file exists and inspect its size before reading:

using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.IO;

var agent = Agent.CreateBuilder(model) .WithTools(t => t.Register(new FileSystemInfoTool())) .Build();

var result = await agent.RunAsync(@"How large is C:\logs\system.log and when was it last modified?");

Constructors

FileSystemInfoTool()

Initializes a new instance with default settings.

FileSystemInfoTool(FileSystemToolOptions)

Initializes a new instance with custom options.

Properties

Description

Gets a concise description of what the tool does.

InputSchema

Gets the JSON Schema defining the expected input arguments.

Name

Gets the stable, unique identifier for this tool.

Methods

InvokeAsync(string, CancellationToken)

Executes the tool with the specified JSON arguments.

Share