Table of Contents

Class FileSystemDiffTool

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

Compares two files and shows differences in unified diff format.

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

Examples

Letting an agent surface what changed between two configurations:

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

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

var result = await agent.RunAsync(@"Show the diff between C:\app\config.json and C:\app\config.json.bak.");

Constructors

FileSystemDiffTool()

Initializes a new instance with default settings.

FileSystemDiffTool(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