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 a7679db6e9
commit 539ab947a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 18 additions and 53 deletions

View file

@ -37,9 +37,8 @@ export class ReadFileTool extends BaseTool<ReadFileToolParams, ToolResult> {
static readonly Name: string = 'read_file';
private static readonly DEFAULT_MAX_LINES = 2000;
private static readonly MAX_LINE_LENGTH = 2000;
private rootDirectory: string;
constructor(rootDirectory: string) {
constructor(private rootDirectory: string) {
super(
ReadFileTool.Name,
'ReadFile',