Class DiffTool
A built-in tool for comparing texts and generating diffs.
Compares strings, generates unified diff output, and shows changes.
public sealed class DiffTool : ITool
- Inheritance
-
DiffTool
- Implements
- Inherited Members
Examples
var tool = new DiffTool();
registry.Register(tool);
// Agent can now: compare texts, show changes, generate patches
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.