Update CodeFileEditAtomicFlow.py
Browse files- CodeFileEditAtomicFlow.py +12 -0
CodeFileEditAtomicFlow.py
CHANGED
|
@@ -6,6 +6,18 @@ import os
|
|
| 6 |
|
| 7 |
|
| 8 |
class CodeFileEditAtomicFlow(AtomicFlow):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
def _generate_content(self, code_lib_location, code_str) -> str:
|
| 10 |
content = (
|
| 11 |
"# The below code will be appended to " +
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
class CodeFileEditAtomicFlow(AtomicFlow):
|
| 9 |
+
"""This class is used to write code to a temp code file, with commented instructions to give information
|
| 10 |
+
to the user.
|
| 11 |
+
|
| 12 |
+
*Input Interface*:
|
| 13 |
+
- `code`: str
|
| 14 |
+
- `language_of_code`: str
|
| 15 |
+
- `memory_files`: Dict[str, str]
|
| 16 |
+
|
| 17 |
+
*Output Interface*:
|
| 18 |
+
- `code_editor_output`: str
|
| 19 |
+
- `temp_code_file_location`: str
|
| 20 |
+
"""
|
| 21 |
def _generate_content(self, code_lib_location, code_str) -> str:
|
| 22 |
content = (
|
| 23 |
"# The below code will be appended to " +
|