mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
Use parameter properties where possible. (#242)
This commit is contained in:
parent
a7679db6e9
commit
539ab947a4
12 changed files with 18 additions and 53 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue