mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 15:31:27 +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
|
|
@ -59,13 +59,11 @@ export class EditTool extends BaseTool<EditToolParams, ToolResult> {
|
|||
static readonly Name = 'replace'; // Keep static name
|
||||
private shouldAlwaysEdit = false;
|
||||
|
||||
private readonly rootDirectory: string;
|
||||
|
||||
/**
|
||||
* Creates a new instance of the EditLogic
|
||||
* @param rootDirectory Root directory to ground this tool in.
|
||||
*/
|
||||
constructor(rootDirectory: string) {
|
||||
constructor(private readonly rootDirectory: string) {
|
||||
// Note: The description here mentions other tools like ReadFileTool/WriteFileTool
|
||||
// by name. This might need updating if those tool names change.
|
||||
super(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue