From 9b175a736ed42da528f0bd009c1b864c75fe5ac3 Mon Sep 17 00:00:00 2001 From: sam hoang Date: Tue, 28 Jan 2025 15:36:39 +0700 Subject: [PATCH] update prompt for search and replace tool --- src/core/prompts/tools/search-and-replace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/prompts/tools/search-and-replace.ts b/src/core/prompts/tools/search-and-replace.ts index 590cb35..eb48d85 100644 --- a/src/core/prompts/tools/search-and-replace.ts +++ b/src/core/prompts/tools/search-and-replace.ts @@ -7,7 +7,7 @@ Parameters: - path: (required) The path of the file to modify (relative to the current working directory ${args.cwd.toPosix()}) - operations: (required) A JSON array of search/replace operations. Each operation is an object with: * search: (required) The text or pattern to search for - * replace: (required) The text to replace matches with + * replace: (required) The text to replace matches with. If multiple lines need to be replaced, use "\n" for newlines * start_line: (optional) Starting line number for restricted replacement * end_line: (optional) Ending line number for restricted replacement * use_regex: (optional) Whether to treat search as a regex pattern