Update ParseFeedbackAtomicFlow.py
Browse files- ParseFeedbackAtomicFlow.py +10 -0
ParseFeedbackAtomicFlow.py
CHANGED
@@ -6,6 +6,16 @@ import os
|
|
6 |
|
7 |
|
8 |
class ParseFeedbackAtomicFlow(AtomicFlow):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
def _read_content(self, file_location, file_type):
|
10 |
if file_type == "code":
|
11 |
header_string = "# Code:\n"
|
|
|
6 |
|
7 |
|
8 |
class ParseFeedbackAtomicFlow(AtomicFlow):
|
9 |
+
"""This flow parses the feedback from the user. The flow is supposed to be called after the CodeFileEdit or PlanFileEdit flow.
|
10 |
+
The flow will open the file in VSCode and wait for the user to edit the file. Once the user closes the file, the flow will parse the file and return the content of the file.
|
11 |
+
|
12 |
+
*Input Interface*:
|
13 |
+
- `temp_code_file_location`: Notice that if we are parsing the plan file, this should be changed to `temp_plan_file_location`.
|
14 |
+
|
15 |
+
*Output Interface*:
|
16 |
+
- `code`: The content of the code file.
|
17 |
+
- `feedback`: The feedback from the user.
|
18 |
+
"""
|
19 |
def _read_content(self, file_location, file_type):
|
20 |
if file_type == "code":
|
21 |
header_string = "# Code:\n"
|