mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +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
|
|
@ -61,17 +61,11 @@ export interface FileEntry {
|
|||
export class LSTool extends BaseTool<LSToolParams, ToolResult> {
|
||||
static readonly Name = 'list_directory';
|
||||
|
||||
/**
|
||||
* The root directory that this tool is grounded in.
|
||||
* All path operations will be restricted to this directory.
|
||||
*/
|
||||
private rootDirectory: string;
|
||||
|
||||
/**
|
||||
* Creates a new instance of the LSLogic
|
||||
* @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(
|
||||
LSTool.Name,
|
||||
'ReadFolder',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue