change links from Tachi repo to aiflows
Browse filesFiles changed (3)
- CodeWriterCtrlFlow.py+1-1
- CodeWriterFlow.py+1-1
- README.md+8-6
13 unmodified lines141516171718192013 unmodified lines input_args: List[str]
class CodeWriterCtrlFlow(ChatAtomicFlow): """refer to https://huggingface.co/Tachi67/JarvisFlowModule/blob/main/Controller_JarvisFlow.py """refer to https://huggingface.co/aiflows/JarvisFlowModule/blob/main/Controller_JarvisFlow.py
This class controls the execution of the CodeWriterFlow.
9 unmodified lines10111213131415169 unmodified lines
class CodeWriterFlow(ContentWriterFlow): """This flow inherits from ContentWriterFlow, it is used to write code in an interactive way. In the subflow of the executor, we specify an InteractiveCodeGenFlow (https://huggingface.co/Tachi67/InteractiveCodeGenFlowModule) In the subflow of the executor, we specify an InteractiveCodeGenFlow (https://huggingface.co/aiflows/InteractiveCodeGenFlowModule)
*Input Interface*: - `goal`11239 unmodified lines131415161718192035 unmodified lines5657585859605960616263646566676869707110 unmodified lines828384838586878869 unmodified lines158159160159161162163164
# Table of Contents
* [Structure of CodeWriterFlow](#structure-of-codewriterflow)9 unmodified lines * [run](#CodeWriterFlow.CodeWriterFlow.run)* [\_\_init\_\_](#__init__)
# Structure of CodeWriterFlow
```35 unmodified lines```
About the branches:- [ask_user](https://huggingface.co/Tachi67/CodeWriterFlowModule/blob/main/CodeWriterAskUserFlow.py): Ask user for info / confirmation, etc.- [write_code](https://huggingface.co/Tachi67/InteractiveCodeGenFlowModule): Generates code (user edit is allowed) and fetches user feedback.- [test](https://huggingface.co/Tachi67/TestCodeFlowModule): Test the code, user can provide test suites, if nothing is provided, syntax of the code is checked.- [ask_user](https://huggingface.co/aiflows/CodeWriterFlowModule/blob/main/CodeWriterAskUserFlow.py): Ask user for info / confirmation, etc.- [write_code](https://huggingface.co/aiflows/InteractiveCodeGenFlowModule): Generates code (user edit is allowed) and fetches user feedback.- [test](https://huggingface.co/aiflows/TestCodeFlowModule): Test the code, user can provide test suites, if nothing is provided, syntax of the code is checked.
How it works:Controller calls write_code until user is satisfied in the feedback, then controller calls test to test the code, if test passes, finish.
<a id="run_codewriter"></a>
# run\_codewriter10 unmodified linesclass CodeWriterCtrlFlow(ChatAtomicFlow)```
refer to https://huggingface.co/Tachi67/JarvisFlowModule/blob/main/Controller_JarvisFlow.pyrefer to https://huggingface.co/aiflows/JarvisFlowModule/blob/main/Controller_JarvisFlow.py
This class controls the execution of the CodeWriterFlow.
69 unmodified lines```
This flow inherits from ContentWriterFlow, it is used to write code in an interactive way.In the subflow of the executor, we specify an InteractiveCodeGenFlow (https://huggingface.co/Tachi67/InteractiveCodeGenFlowModule)In the subflow of the executor, we specify an InteractiveCodeGenFlow (https://huggingface.co/aiflows/InteractiveCodeGenFlowModule)
*Input Interface*:- `goal`CodeWriterCtrlFlow.py+1-1
CodeWriterFlow.py+1-1
README.md+8-6