MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / _check_attachments_not_modified

Function _check_attachments_not_modified

functions/function_calling/file.py:100–102  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

98
99
100def _check_attachments_not_modified(path: str) -> None:
101 if path.startswith("attachments"):
102 raise ValueError("Modifications to the attachments directory are not allowed")
103
104def describe_available_files(
105 *,

Callers 6

create_folderFunction · 0.85
delete_pathFunction · 0.85
apply_text_editsFunction · 0.85
rename_pathFunction · 0.85
copy_pathFunction · 0.85
move_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected