Upload 10 files
Browse filesFiles changed (3)
31 unmodified lines323334353637383940419 unmodified lines51525354555631 unmodified linesos.remove(file_location)def _open_file_and_wait_for_upd(self, file_location):try:process = subprocess.Popen(["code", file_location])except Exception:raisewhile True:if process.poll() is not None:break9 unmodified linesself._process_input_data(input_data)execution_output = self._call()self._delete_file(file_loc)code_ran = input_data["code"].deepcopy()response = {"interpreter_output": execution_output, "code_ran": code_ran}return response31 unmodified lines323334353637389 unmodified lines484950515231 unmodified linesos.remove(file_location)def _open_file_and_wait_for_upd(self, file_location):process = subprocess.Popen(["code", "--wait", file_location])while True:if process.poll() is not None:break9 unmodified linesself._process_input_data(input_data)execution_output = self._call()self._delete_file(file_loc)response = {"interpreter_output": execution_output, "code_ran": input_data['code']}return response
1234_target_: Tachi67.RunCodeFlowModule.RunCodeAskUserFlow.instantiate_from_default_configrequest_multi_line_input_flag: Falseend_of_input_string: EOI123456789101112_target_: Tachi67.RunCodeFlowModule.RunCodeAskUserFlow.instantiate_from_default_configinput_interface:- "interpreter_output"- "code_ran"output_interface:- "summary"- "result"request_multi_line_input_flag: Falseend_of_input_string: EOI
27 unmodified lines2829303132333427 unmodified linesdef _generate_temp_file_location(self, code_lib_location, file_extension):directory = os.path.dirname(code_lib_location)ret = os.path.join(directory, 'run_code_temp'+'.'+file_extension)return retdef _check_input(self, input_data: Dict[str, Any]):27 unmodified lines2829303132333427 unmodified linesdef _generate_temp_file_location(self, code_lib_location, file_extension):directory = os.path.dirname(code_lib_location)ret = os.path.join(directory, 'run_code_temp'+file_extension)return retdef _check_input(self, input_data: Dict[str, Any]):
ExecuteCodeAtomicFlow.py+2-6
RunCodeAskUserFlow.yaml+8
RunCodeFileEditAtomicFlow.py+1-1