Upload 6 files
Browse files- CodeFileEditAtomicFlow.py +5 -0
- README.md +10 -1
CodeFileEditAtomicFlow.py
CHANGED
|
@@ -15,6 +15,11 @@ class CodeFileEditAtomicFlow(AtomicFlow):
|
|
| 15 |
*Output Interface*:
|
| 16 |
- `code_editor_output`: str
|
| 17 |
- `temp_code_file_location`: str
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
"""
|
| 19 |
def _generate_content(self, code_lib_location, code_str) -> str:
|
| 20 |
"""This function generates the content to be written to the temp file.
|
|
|
|
| 15 |
*Output Interface*:
|
| 16 |
- `code_editor_output`: str
|
| 17 |
- `temp_code_file_location`: str
|
| 18 |
+
|
| 19 |
+
*Configuration Parameters*:
|
| 20 |
+
- `input_interface`: The input interface of the atomic flow.
|
| 21 |
+
- `output_interface`: The output interface of the atomic flow.
|
| 22 |
+
|
| 23 |
"""
|
| 24 |
def _generate_content(self, code_lib_location, code_str) -> str:
|
| 25 |
"""This function generates the content to be written to the temp file.
|
README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
| 3 |
* [CodeFileEditAtomicFlow](#CodeFileEditAtomicFlow)
|
| 4 |
* [CodeFileEditAtomicFlow](#CodeFileEditAtomicFlow.CodeFileEditAtomicFlow)
|
| 5 |
* [run](#CodeFileEditAtomicFlow.CodeFileEditAtomicFlow.run)
|
|
|
|
| 6 |
* [\_\_init\_\_](#__init__)
|
| 7 |
|
| 8 |
<a id="CodeFileEditAtomicFlow"></a>
|
|
@@ -23,12 +24,16 @@ to the user.
|
|
| 23 |
*Input Interface*:
|
| 24 |
- `code`: str
|
| 25 |
- `language_of_code`: str
|
| 26 |
-
- `memory_files`: Dict[str, str]
|
| 27 |
|
| 28 |
*Output Interface*:
|
| 29 |
- `code_editor_output`: str
|
| 30 |
- `temp_code_file_location`: str
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
<a id="CodeFileEditAtomicFlow.CodeFileEditAtomicFlow.run"></a>
|
| 33 |
|
| 34 |
#### run
|
|
@@ -43,6 +48,10 @@ This function runs the atomic flow.
|
|
| 43 |
:return: Dict[str, Any] The output data.
|
| 44 |
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
<a id="__init__"></a>
|
| 47 |
|
| 48 |
# \_\_init\_\_
|
|
|
|
| 3 |
* [CodeFileEditAtomicFlow](#CodeFileEditAtomicFlow)
|
| 4 |
* [CodeFileEditAtomicFlow](#CodeFileEditAtomicFlow.CodeFileEditAtomicFlow)
|
| 5 |
* [run](#CodeFileEditAtomicFlow.CodeFileEditAtomicFlow.run)
|
| 6 |
+
* [run](#run)
|
| 7 |
* [\_\_init\_\_](#__init__)
|
| 8 |
|
| 9 |
<a id="CodeFileEditAtomicFlow"></a>
|
|
|
|
| 24 |
*Input Interface*:
|
| 25 |
- `code`: str
|
| 26 |
- `language_of_code`: str
|
| 27 |
+
- `memory_files`: Dict[str, str]
|
| 28 |
|
| 29 |
*Output Interface*:
|
| 30 |
- `code_editor_output`: str
|
| 31 |
- `temp_code_file_location`: str
|
| 32 |
|
| 33 |
+
*Configuration Parameters*:
|
| 34 |
+
- `input_interface`: The input interface of the atomic flow.
|
| 35 |
+
- `output_interface`: The output interface of the atomic flow.
|
| 36 |
+
|
| 37 |
<a id="CodeFileEditAtomicFlow.CodeFileEditAtomicFlow.run"></a>
|
| 38 |
|
| 39 |
#### run
|
|
|
|
| 48 |
:return: Dict[str, Any] The output data.
|
| 49 |
|
| 50 |
|
| 51 |
+
<a id="run"></a>
|
| 52 |
+
|
| 53 |
+
# run
|
| 54 |
+
|
| 55 |
<a id="__init__"></a>
|
| 56 |
|
| 57 |
# \_\_init\_\_
|