Skip to content

Commit 807e532

Browse files
authored
Feat: improvement to create file tool (#797)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [x] I have added tests for my changes - [x] I have updated the documentation or added new documentation as needed
1 parent 8f214c6 commit 807e532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/extensions/tools/create_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def create_file(codebase: Codebase, filepath: str, content: str = "") -> CreateF
3737
if codebase.has_file(filepath):
3838
return CreateFileObservation(
3939
status="error",
40-
error=f"File already exists: {filepath}",
40+
error=f"File already exists: {filepath}, please use view_file to see the file content or realace_edit to edit it directly",
4141
filepath=filepath,
4242
file_info=ViewFileObservation(
4343
status="error",

0 commit comments

Comments
 (0)