Update ParseFeedbackAtomicFlow.py
Browse files
ParseFeedbackAtomicFlow.py
CHANGED
|
@@ -73,14 +73,14 @@ class ParseFeedbackAtomicFlow(AtomicFlow):
|
|
| 73 |
self._check_input(input_data)
|
| 74 |
if "temp_code_file_location" in input_data:
|
| 75 |
temp_code_file_location = input_data['temp_code_file_location']
|
| 76 |
-
self._open_file_and_wait_for_file_update(temp_code_file_location
|
| 77 |
code_content = self._read_content(temp_code_file_location, "code")
|
| 78 |
user_thoughts = self._parse_user_thoughts(temp_code_file_location)
|
| 79 |
response = {"code": code_content, "feedback": user_thoughts}
|
| 80 |
|
| 81 |
elif "temp_plan_file_location" in input_data:
|
| 82 |
plan_file_location = input_data["temp_plan_file_location"]
|
| 83 |
-
self._open_file_and_wait_for_file_update(plan_file_location
|
| 84 |
plan_content = self._read_content(plan_file_location, "plan")
|
| 85 |
user_thoughts = self._parse_user_thoughts(plan_file_location)
|
| 86 |
response = {"plan": plan_content, "feedback": user_thoughts}
|
|
|
|
| 73 |
self._check_input(input_data)
|
| 74 |
if "temp_code_file_location" in input_data:
|
| 75 |
temp_code_file_location = input_data['temp_code_file_location']
|
| 76 |
+
self._open_file_and_wait_for_file_update(temp_code_file_location)
|
| 77 |
code_content = self._read_content(temp_code_file_location, "code")
|
| 78 |
user_thoughts = self._parse_user_thoughts(temp_code_file_location)
|
| 79 |
response = {"code": code_content, "feedback": user_thoughts}
|
| 80 |
|
| 81 |
elif "temp_plan_file_location" in input_data:
|
| 82 |
plan_file_location = input_data["temp_plan_file_location"]
|
| 83 |
+
self._open_file_and_wait_for_file_update(plan_file_location)
|
| 84 |
plan_content = self._read_content(plan_file_location, "plan")
|
| 85 |
user_thoughts = self._parse_user_thoughts(plan_file_location)
|
| 86 |
response = {"plan": plan_content, "feedback": user_thoughts}
|