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: openhands/core/config/sandbox_config.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,7 @@ class SandboxConfig(BaseModel):
88
88
description="Volume mounts in the format 'host_path:container_path[:mode]', e.g. '/my/host/dir:/workspace:rw'. Multiple mounts can be specified using commas, e.g. '/path1:/workspace/path1,/path2:/workspace/path2:ro'",
Copy file name to clipboardExpand all lines: openhands/runtime/utils/edit.py
+88-4Lines changed: 88 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,40 @@
39
39
<update_snippet>{draft_changes}</update_snippet>
40
40
"""
41
41
42
+
CORRECT_SYS_MSG="""You are a code repair assistant. Now you have an original file content and error information from a static code checking tool (lint tool). Your task is to automatically modify and return the repaired complete code based on these error messages and refer to the current file content.
43
+
44
+
The following are the specific task steps you need to complete:
45
+
46
+
Carefully read the current file content to ensure that you fully understand its code structure.
47
+
48
+
According to the lint error prompt, accurately locate and analyze the cause of the problem.
49
+
50
+
Modify the original file content and fix all errors prompted by the lint tool.
51
+
52
+
Return complete, runnable, and error-fixed code, paying attention to maintaining the overall style and specifications of the original code.
53
+
54
+
Please note:
55
+
56
+
Please strictly follow the lint error prompts to make modifications and do not miss any problems.
57
+
58
+
The modified code must be complete and cannot introduce new errors or bugs.
59
+
60
+
The modified code must maintain the original code function and logic, and no changes unrelated to error repair should be made."""
61
+
62
+
CORRECT_USER_MSG="""
63
+
THE FOLLOWING ARE THE ORIGINAL FILE CONTENTS AND THE ERROR INFORMATION REPORTED BY THE LINT TOOL
0 commit comments