Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,103 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Table of Contents
|
| 2 |
+
|
| 3 |
+
* [RunCodeFlow](#RunCodeFlow)
|
| 4 |
+
* [RunCodeFlow](#RunCodeFlow.RunCodeFlow)
|
| 5 |
+
* [ExecuteCodeAtomicFlow](#ExecuteCodeAtomicFlow)
|
| 6 |
+
* [ExecuteCodeAtomicFlow](#ExecuteCodeAtomicFlow.ExecuteCodeAtomicFlow)
|
| 7 |
+
* [RunCodeAskUserFlow](#RunCodeAskUserFlow)
|
| 8 |
+
* [RunCodeAskUserFlow](#RunCodeAskUserFlow.RunCodeAskUserFlow)
|
| 9 |
+
* [library](#library)
|
| 10 |
+
* [run](#run)
|
| 11 |
+
* [RunCodeFileEditAtomicFlow](#RunCodeFileEditAtomicFlow)
|
| 12 |
+
* [RunCodeFileEditAtomicFlow](#RunCodeFileEditAtomicFlow.RunCodeFileEditAtomicFlow)
|
| 13 |
+
* [\_\_init\_\_](#__init__)
|
| 14 |
+
|
| 15 |
+
<a id="RunCodeFlow"></a>
|
| 16 |
+
|
| 17 |
+
# RunCodeFlow
|
| 18 |
+
|
| 19 |
+
<a id="RunCodeFlow.RunCodeFlow"></a>
|
| 20 |
+
|
| 21 |
+
## RunCodeFlow Objects
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
class RunCodeFlow(SequentialFlow)
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
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.
|
| 28 |
+
Once the file is saved, it reads the code from the file and executes it. It then returns the output of the execution.
|
| 29 |
+
Finally, the flow asks the user for feedback on the execution of the code.
|
| 30 |
+
|
| 31 |
+
*Input Interface*:
|
| 32 |
+
- code: The code to be executed.
|
| 33 |
+
- language: The language of the code to be executed.
|
| 34 |
+
- memory_files: The dictionary containing the location of the code library.
|
| 35 |
+
|
| 36 |
+
*Output Interface*:
|
| 37 |
+
- summary: The summary of the execution of the code. (To be written to the logs of the caller flow)
|
| 38 |
+
- result: The result of the execution of the code. (To be returned to the controller of the caller flow)
|
| 39 |
+
|
| 40 |
+
<a id="ExecuteCodeAtomicFlow"></a>
|
| 41 |
+
|
| 42 |
+
# ExecuteCodeAtomicFlow
|
| 43 |
+
|
| 44 |
+
<a id="ExecuteCodeAtomicFlow.ExecuteCodeAtomicFlow"></a>
|
| 45 |
+
|
| 46 |
+
## ExecuteCodeAtomicFlow Objects
|
| 47 |
+
|
| 48 |
+
```python
|
| 49 |
+
class ExecuteCodeAtomicFlow(InterpreterAtomicFlow)
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
This class inherits from InterpreterAtomicFlow and is used to execute code in a file.
|
| 53 |
+
It opens up the file in VSCode and waits for the user to save the file. Once the file is saved, it reads the code
|
| 54 |
+
from the file and executes it. It then returns the output of the execution.
|
| 55 |
+
|
| 56 |
+
*Input Interface*:
|
| 57 |
+
- temp_code_file_location: The location of the file containing the code to be executed.
|
| 58 |
+
- language: The language of the code to be executed.
|
| 59 |
+
|
| 60 |
+
*Output Interface*:
|
| 61 |
+
- interpreter_output: The output of the execution of the code.
|
| 62 |
+
- code_ran: The code that was executed.
|
| 63 |
+
|
| 64 |
+
<a id="RunCodeAskUserFlow"></a>
|
| 65 |
+
|
| 66 |
+
# RunCodeAskUserFlow
|
| 67 |
+
|
| 68 |
+
<a id="RunCodeAskUserFlow.RunCodeAskUserFlow"></a>
|
| 69 |
+
|
| 70 |
+
## RunCodeAskUserFlow Objects
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
class RunCodeAskUserFlow(HumanStandardInputFlow)
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
Refer to: https://huggingface.co/Tachi67/ExtendLibraryFlowModule/blob/main/ExtLibAskUserFlow.py
|
| 77 |
+
|
| 78 |
+
<a id="library"></a>
|
| 79 |
+
|
| 80 |
+
# library
|
| 81 |
+
|
| 82 |
+
<a id="run"></a>
|
| 83 |
+
|
| 84 |
+
# run
|
| 85 |
+
|
| 86 |
+
<a id="RunCodeFileEditAtomicFlow"></a>
|
| 87 |
+
|
| 88 |
+
# RunCodeFileEditAtomicFlow
|
| 89 |
+
|
| 90 |
+
<a id="RunCodeFileEditAtomicFlow.RunCodeFileEditAtomicFlow"></a>
|
| 91 |
+
|
| 92 |
+
## RunCodeFileEditAtomicFlow Objects
|
| 93 |
+
|
| 94 |
+
```python
|
| 95 |
+
class RunCodeFileEditAtomicFlow(CodeFileEditAtomicFlow)
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
Refer to: https://huggingface.co/Tachi67/CodeFileEditFlowModule
|
| 99 |
+
|
| 100 |
+
<a id="__init__"></a>
|
| 101 |
+
|
| 102 |
+
# \_\_init\_\_
|
| 103 |
+
|