Compare commits

...

14 Commits

Author SHA1 Message Date
Cline Evaluation 9ac6c7139a removed changeset 2025-05-30 16:05:05 -07:00
Cline Evaluation 195a3a9465 removed changeset 2025-05-30 16:04:41 -07:00
Elephant Lumps b0154750b5 merge conflicts 2025-05-30 15:28:33 -07:00
Elephant Lumps 12d952bccf add editTool definition 2025-05-30 15:26:33 -07:00
Elephant Lumps 92a25e7159 merge conflicts 2025-05-29 13:42:52 -07:00
Elephant Lumps aa2e7b758d merge conflicts 2025-05-28 18:02:22 -07:00
Elephant Lumps a38f01beb4 add grep tool new format 2025-05-28 17:56:42 -07:00
Cline Evaluation be353be6c6 using json 2025-05-28 16:12:48 -07:00
Cline Evaluation b299addc53 Merge remote-tracking branch 'origin/main' into add-ls-file-tool-new-format 2025-05-28 16:11:07 -07:00
Elephant Lumps 06a9f7b4d9 use separate function for new format 2025-05-28 15:06:36 -07:00
Elephant Lumps 1a53944eb7 changeset 2025-05-28 14:56:40 -07:00
Elephant Lumps ce0f5ba08e add json tool definition and remove extra '.' 2025-05-28 14:56:09 -07:00
Elephant Lumps c3d0d06761 Merge branch 'main' into add-ls-file-tool-new-format 2025-05-28 13:41:20 -07:00
Elephant Lumps 3d358f9319 add ls file tool description, parsing, and return formatting 2025-05-28 12:23:32 -07:00
+35
View File
@@ -0,0 +1,35 @@
import { ToolDefinition } from "@core/prompts/model_prompts/jsonToolToXml"
export const editToolDefinition: ToolDefinition = {
name: "MultiEdit",
descriptionForAgent:
"Makes multiple changes to a single file in one operation. Use this tool to edit files by providing the exact text to replace and the new text.",
inputSchema: {
type: "object",
properties: {
file_path: {
type: "string",
description: "Absolute path to the file to modify",
},
edits: {
type: "array",
description: "Array of edit operations, each containing old_string and new_string",
items: {
type: "object",
properties: {
old_string: {
type: "string",
description: "Exact text to replace",
},
new_string: {
type: "string",
description: "The replacement text",
},
},
required: ["old_string", "new_string"],
},
},
},
required: ["file_path", "edits"],
},
}