Update RunCodeFlow.py
Browse files- RunCodeFlow.py +13 -0
RunCodeFlow.py
CHANGED
|
@@ -5,4 +5,17 @@ logging.set_verbosity_debug()
|
|
| 5 |
log = logging.get_logger(__name__)
|
| 6 |
|
| 7 |
class RunCodeFlow(SequentialFlow):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
pass
|
|
|
|
| 5 |
log = logging.get_logger(__name__)
|
| 6 |
|
| 7 |
class RunCodeFlow(SequentialFlow):
|
| 8 |
+
"""This flow is used to run code in a file. It opens up the file in VSCode and waits for the user to save the file.
|
| 9 |
+
Once the file is saved, it reads the code from the file and executes it. It then returns the output of the execution.
|
| 10 |
+
Finally, the flow asks the user for feedback on the execution of the code.
|
| 11 |
+
|
| 12 |
+
*Input Interface*:
|
| 13 |
+
- code: The code to be executed.
|
| 14 |
+
- language: The language of the code to be executed.
|
| 15 |
+
- memory_files: The dictionary containing the location of the code library.
|
| 16 |
+
|
| 17 |
+
*Output Interface*:
|
| 18 |
+
- summary: The summary of the execution of the code. (To be written to the logs of the caller flow)
|
| 19 |
+
- result: The result of the execution of the code. (To be returned to the controller of the caller flow)
|
| 20 |
+
"""
|
| 21 |
pass
|