Class DiffStatsTool
Gets diff statistics between two texts.
Returns counts of lines added, removed, unchanged, and overall change percentage. Can also return just the added or removed lines.
public sealed class DiffStatsTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
DiffStatsTool
- Implements
- Inherited Members
Examples
var tool = new DiffStatsTool();
registry.Register(tool);
// Agent can now: get diff stats, list added lines, list removed lines
Constructors
- DiffStatsTool()
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.