Use parameter properties where possible. (#242)

This commit is contained in:
Jacob Richman
2025-05-02 09:31:18 -07:00
committed by GitHub
parent 0200fdc27c
commit 99f047b349
12 changed files with 18 additions and 53 deletions
+1 -3
View File
@@ -54,13 +54,11 @@ interface GrepMatch {
export class GrepTool extends BaseTool<GrepToolParams, ToolResult> {
static readonly Name = 'search_file_content'; // Keep static name
private rootDirectory: string;
/**
* Creates a new instance of the GrepLogic
* @param rootDirectory Root directory to ground this tool in. All operations will be restricted to this directory.
*/
constructor(rootDirectory: string) {
constructor(private rootDirectory: string) {
super(
GrepTool.Name,
'SearchText',