change links from Tachi repo to aiflows
Browse files- CodeWriterCtrlFlow.py +1 -1
- CodeWriterFlow.py +1 -1
- README.md +8 -6
CodeWriterCtrlFlow.py
CHANGED
|
@@ -14,7 +14,7 @@ class Command:
|
|
| 14 |
input_args: List[str]
|
| 15 |
|
| 16 |
class CodeWriterCtrlFlow(ChatAtomicFlow):
|
| 17 |
-
"""refer to https://huggingface.co/
|
| 18 |
|
| 19 |
This class controls the execution of the CodeWriterFlow.
|
| 20 |
|
|
|
|
| 14 |
input_args: List[str]
|
| 15 |
|
| 16 |
class CodeWriterCtrlFlow(ChatAtomicFlow):
|
| 17 |
+
"""refer to https://huggingface.co/aiflows/JarvisFlowModule/blob/main/Controller_JarvisFlow.py
|
| 18 |
|
| 19 |
This class controls the execution of the CodeWriterFlow.
|
| 20 |
|
CodeWriterFlow.py
CHANGED
|
@@ -10,7 +10,7 @@ log = logging.get_logger(f"aiflows.{__name__}")
|
|
| 10 |
|
| 11 |
class CodeWriterFlow(ContentWriterFlow):
|
| 12 |
"""This flow inherits from ContentWriterFlow, it is used to write code in an interactive way.
|
| 13 |
-
In the subflow of the executor, we specify an InteractiveCodeGenFlow (https://huggingface.co/
|
| 14 |
|
| 15 |
*Input Interface*:
|
| 16 |
- `goal`
|
|
|
|
| 10 |
|
| 11 |
class CodeWriterFlow(ContentWriterFlow):
|
| 12 |
"""This flow inherits from ContentWriterFlow, it is used to write code in an interactive way.
|
| 13 |
+
In the subflow of the executor, we specify an InteractiveCodeGenFlow (https://huggingface.co/aiflows/InteractiveCodeGenFlowModule)
|
| 14 |
|
| 15 |
*Input Interface*:
|
| 16 |
- `goal`
|
README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
|
| 2 |
# Table of Contents
|
| 3 |
|
| 4 |
* [Structure of CodeWriterFlow](#structure-of-codewriterflow)
|
|
@@ -14,6 +13,8 @@
|
|
| 14 |
* [run](#CodeWriterFlow.CodeWriterFlow.run)
|
| 15 |
* [\_\_init\_\_](#__init__)
|
| 16 |
|
|
|
|
|
|
|
| 17 |
# Structure of CodeWriterFlow
|
| 18 |
|
| 19 |
```
|
|
@@ -55,15 +56,16 @@ write_code ask_user test
|
|
| 55 |
```
|
| 56 |
|
| 57 |
About the branches:
|
| 58 |
-
- [ask_user](https://huggingface.co/
|
| 59 |
-
- [write_code](https://huggingface.co/
|
| 60 |
-
- [test](https://huggingface.co/
|
| 61 |
|
| 62 |
How it works:
|
| 63 |
Controller calls write_code until user is satisfied in the feedback, then controller calls test to test the code, if test passes, finish.
|
| 64 |
|
| 65 |
|
| 66 |
|
|
|
|
| 67 |
<a id="run_codewriter"></a>
|
| 68 |
|
| 69 |
# run\_codewriter
|
|
@@ -80,7 +82,7 @@ Controller calls write_code until user is satisfied in the feedback, then contro
|
|
| 80 |
class CodeWriterCtrlFlow(ChatAtomicFlow)
|
| 81 |
```
|
| 82 |
|
| 83 |
-
refer to https://huggingface.co/
|
| 84 |
|
| 85 |
This class controls the execution of the CodeWriterFlow.
|
| 86 |
|
|
@@ -156,7 +158,7 @@ class CodeWriterFlow(ContentWriterFlow)
|
|
| 156 |
```
|
| 157 |
|
| 158 |
This flow inherits from ContentWriterFlow, it is used to write code in an interactive way.
|
| 159 |
-
In the subflow of the executor, we specify an InteractiveCodeGenFlow (https://huggingface.co/
|
| 160 |
|
| 161 |
*Input Interface*:
|
| 162 |
- `goal`
|
|
|
|
|
|
|
| 1 |
# Table of Contents
|
| 2 |
|
| 3 |
* [Structure of CodeWriterFlow](#structure-of-codewriterflow)
|
|
|
|
| 13 |
* [run](#CodeWriterFlow.CodeWriterFlow.run)
|
| 14 |
* [\_\_init\_\_](#__init__)
|
| 15 |
|
| 16 |
+
|
| 17 |
+
|
| 18 |
# Structure of CodeWriterFlow
|
| 19 |
|
| 20 |
```
|
|
|
|
| 56 |
```
|
| 57 |
|
| 58 |
About the branches:
|
| 59 |
+
- [ask_user](https://huggingface.co/aiflows/CodeWriterFlowModule/blob/main/CodeWriterAskUserFlow.py): Ask user for info / confirmation, etc.
|
| 60 |
+
- [write_code](https://huggingface.co/aiflows/InteractiveCodeGenFlowModule): Generates code (user edit is allowed) and fetches user feedback.
|
| 61 |
+
- [test](https://huggingface.co/aiflows/TestCodeFlowModule): Test the code, user can provide test suites, if nothing is provided, syntax of the code is checked.
|
| 62 |
|
| 63 |
How it works:
|
| 64 |
Controller calls write_code until user is satisfied in the feedback, then controller calls test to test the code, if test passes, finish.
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
+
|
| 69 |
<a id="run_codewriter"></a>
|
| 70 |
|
| 71 |
# run\_codewriter
|
|
|
|
| 82 |
class CodeWriterCtrlFlow(ChatAtomicFlow)
|
| 83 |
```
|
| 84 |
|
| 85 |
+
refer to https://huggingface.co/aiflows/JarvisFlowModule/blob/main/Controller_JarvisFlow.py
|
| 86 |
|
| 87 |
This class controls the execution of the CodeWriterFlow.
|
| 88 |
|
|
|
|
| 158 |
```
|
| 159 |
|
| 160 |
This flow inherits from ContentWriterFlow, it is used to write code in an interactive way.
|
| 161 |
+
In the subflow of the executor, we specify an InteractiveCodeGenFlow (https://huggingface.co/aiflows/InteractiveCodeGenFlowModule)
|
| 162 |
|
| 163 |
*Input Interface*:
|
| 164 |
- `goal`
|