refactor(core): Centralize 'write_file' tool name (#10694)

This commit is contained in:
Abhi
2025-10-09 00:33:31 -04:00
committed by GitHub
parent 3ea5581ad7
commit 3d24575239
8 changed files with 24 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ import type { GeminiClient } from '../core/client.js';
import type { BaseLlmClient } from '../core/baseLlmClient.js';
import type { EditToolParams } from '../tools/edit.js';
import { EditTool } from '../tools/edit.js';
import { WriteFileTool } from '../tools/write-file.js';
import { WRITE_FILE_TOOL_NAME } from '../tools/tool-names.js';
import { ReadFileTool } from '../tools/read-file.js';
import { ReadManyFilesTool } from '../tools/read-many-files.js';
import { GrepTool } from '../tools/grep.js';
@@ -100,7 +100,7 @@ async function findLastEditTimestamp(
// Tools that may reference the file path in their FunctionResponse `output`.
const toolsInResp = new Set([
WriteFileTool.Name,
WRITE_FILE_TOOL_NAME,
EditTool.Name,
ReadManyFilesTool.Name,
GrepTool.Name,