You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
readonlymodelDescription=`Edit a file in the workspace. Use this tool once per file that needs to be modified, even if there are multiple changes for a file. ${codeInstructions}`;
64
+
readonlymodelDescription=`Edit a file in the workspace. Use this tool once per file that needs to be modified, even if there are multiple changes for a file. Generate the "explanation" property first. ${codeInstructions}`;
68
65
readonlyinputSchema: IJSONSchema;
69
66
70
67
constructor(
@@ -75,20 +72,20 @@ class EditTool implements IToolData, IToolImpl {
75
72
this.inputSchema={
76
73
type: 'object',
77
74
properties: {
78
-
filePath: {
79
-
type: 'string',
80
-
description: 'An absolute path to the file to edit',
81
-
},
82
75
explanation: {
83
76
type: 'string',
84
77
description: 'A short explanation of the edit being made. Can be the same as the explanation you showed to the user.',
85
78
},
79
+
filePath: {
80
+
type: 'string',
81
+
description: 'An absolute path to the file to edit',
82
+
},
86
83
code: {
87
84
type: 'string',
88
85
description: 'The code change to apply to the file. '+codeInstructions
0 commit comments