Table of Contents

Class DiffCompareTool

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

Compares two texts and shows differences in various formats.

Supports side-by-side comparison, unified diff output, and inline change display.

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

Examples

var tool = new DiffCompareTool();
registry.Register(tool);

// Agent can now: compare texts side-by-side, generate unified diffs, show inline changes

Constructors

DiffCompareTool()

Initializes a new instance with default settings.

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