Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,88 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Table of Contents
|
| 2 |
+
|
| 3 |
+
* [run\_codewriter](#run_codewriter)
|
| 4 |
+
* [CodeWriterCtrlFlow](#CodeWriterCtrlFlow)
|
| 5 |
+
* [CodeWriterCtrlFlow](#CodeWriterCtrlFlow.CodeWriterCtrlFlow)
|
| 6 |
+
* [CodeWriterAskUserFlow](#CodeWriterAskUserFlow)
|
| 7 |
+
* [CodeWriterAskUserFlow](#CodeWriterAskUserFlow.CodeWriterAskUserFlow)
|
| 8 |
+
* [run](#CodeWriterAskUserFlow.CodeWriterAskUserFlow.run)
|
| 9 |
+
* [CodeWriterFlow](#CodeWriterFlow)
|
| 10 |
+
* [CodeWriterFlow](#CodeWriterFlow.CodeWriterFlow)
|
| 11 |
+
* [\_\_init\_\_](#__init__)
|
| 12 |
+
|
| 13 |
+
<a id="run_codewriter"></a>
|
| 14 |
+
|
| 15 |
+
# run\_codewriter
|
| 16 |
+
|
| 17 |
+
<a id="CodeWriterCtrlFlow"></a>
|
| 18 |
+
|
| 19 |
+
# CodeWriterCtrlFlow
|
| 20 |
+
|
| 21 |
+
<a id="CodeWriterCtrlFlow.CodeWriterCtrlFlow"></a>
|
| 22 |
+
|
| 23 |
+
## CodeWriterCtrlFlow Objects
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
class CodeWriterCtrlFlow(ChatAtomicFlow)
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
refer to https://huggingface.co/Tachi67/JarvisFlowModule/blob/main/Controller_JarvisFlow.py
|
| 30 |
+
|
| 31 |
+
<a id="CodeWriterAskUserFlow"></a>
|
| 32 |
+
|
| 33 |
+
# CodeWriterAskUserFlow
|
| 34 |
+
|
| 35 |
+
<a id="CodeWriterAskUserFlow.CodeWriterAskUserFlow"></a>
|
| 36 |
+
|
| 37 |
+
## CodeWriterAskUserFlow Objects
|
| 38 |
+
|
| 39 |
+
```python
|
| 40 |
+
class CodeWriterAskUserFlow(HumanStandardInputFlow)
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
This class is used to ask for user feedback whenever the controller is unsure of something, or need confirmation, etc.
|
| 44 |
+
*Expected Input*:
|
| 45 |
+
- `question`: The question asked by the controller
|
| 46 |
+
*Expected Behaviour*:
|
| 47 |
+
- The question is displayed, and the user gives feedback by inputing string.
|
| 48 |
+
*Expected Ouput*:
|
| 49 |
+
- `feedback`: The input of the user.
|
| 50 |
+
- `code`: No code was written.
|
| 51 |
+
|
| 52 |
+
<a id="CodeWriterAskUserFlow.CodeWriterAskUserFlow.run"></a>
|
| 53 |
+
|
| 54 |
+
#### run
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
def run(input_data: Dict[str, Any]) -> Dict[str, Any]
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
Run the flow.
|
| 61 |
+
|
| 62 |
+
**Arguments**:
|
| 63 |
+
|
| 64 |
+
- `input_data`: The input data.
|
| 65 |
+
|
| 66 |
+
**Returns**:
|
| 67 |
+
|
| 68 |
+
The output data.
|
| 69 |
+
|
| 70 |
+
<a id="CodeWriterFlow"></a>
|
| 71 |
+
|
| 72 |
+
# CodeWriterFlow
|
| 73 |
+
|
| 74 |
+
<a id="CodeWriterFlow.CodeWriterFlow"></a>
|
| 75 |
+
|
| 76 |
+
## CodeWriterFlow Objects
|
| 77 |
+
|
| 78 |
+
```python
|
| 79 |
+
class CodeWriterFlow(ContentWriterFlow)
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
This flow inherits from ContentWriterFlow, it is used to write code in an interactive way.
|
| 83 |
+
In the subflow of the executor, we specify an InteractiveCodeGenFlow (https://huggingface.co/Tachi67/InteractiveCodeGenFlowModule)
|
| 84 |
+
|
| 85 |
+
<a id="__init__"></a>
|
| 86 |
+
|
| 87 |
+
# \_\_init\_\_
|
| 88 |
+
|