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
Copy file name to clipboardExpand all lines: patchwork/common/tools/code_edit_tools.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,6 @@ def json_schema(self) -> dict:
24
24
* If `path` is a file, `view` displays the result of applying `cat -n`. If `path` is a directory, `view` lists non-hidden files and directories up to 2 levels deep
25
25
* The `create` command cannot be used if the specified `path` already exists as a file
26
26
* If a `command` generates a long output, it will be truncated and marked with `<response clipped>`
27
-
* The `undo_edit` command will revert the last edit made to the file at `path`
28
27
* The working directory is always {self.repo_path}
You are a senior software engineer assigned to fix an issue. Your lead engineer have already analyzed the issue and provided his analysis for you for reference.
110
+
""",
111
+
user_prompt="""\
112
+
<uploaded_files>
113
+
{{path}}
114
+
</uploaded_files>
115
+
I've uploaded a code repository in the current working directory.
116
+
117
+
Based on our analysis:
118
+
119
+
<lead_analysis>
120
+
<files_to_be_changed>
121
+
{{analysis_result.files}}
122
+
</files_to_be_changed>
123
+
<change_description>
124
+
{{analysis_result.changes_needed}}
125
+
</change_description>
126
+
</lead_analysis>
127
+
128
+
Let's implement the necessary changes:
129
+
130
+
1. Edit the sourcecode of the repo to resolve the issue
131
+
2. Think about edge cases and make sure your fix handles them as well
132
+
133
+
I've already taken care of all changes to any of the test files described in the PR.
134
+
This means you DON'T have to modify the testing logic or any of the tests in any way!
0 commit comments