refactor(tools): Move all tool names into tool-names.ts (#11493)

This commit is contained in:
Abhi
2025-10-19 20:53:53 -04:00
committed by GitHub
parent 0f77c37b9b
commit b8561d2a40
17 changed files with 90 additions and 100 deletions
+2 -4
View File
@@ -319,7 +319,7 @@ class WriteFileToolInvocation extends BaseToolInvocation<
logFileOperation(
this.config,
new FileOperationEvent(
WriteFileTool.Name,
WRITE_FILE_TOOL_NAME,
operation,
fileContent.split('\n').length,
mimetype,
@@ -390,11 +390,9 @@ export class WriteFileTool
extends BaseDeclarativeTool<WriteFileToolParams, ToolResult>
implements ModifiableDeclarativeTool<WriteFileToolParams>
{
static readonly Name: string = WRITE_FILE_TOOL_NAME;
constructor(private readonly config: Config) {
super(
WriteFileTool.Name,
WRITE_FILE_TOOL_NAME,
'WriteFile',
`Writes content to a specified file in the local filesystem.