region:us
### Structure of InteractiveCodeGenFlow

```
               goal
                |
                |
                |
                v
        +------------------+                     
        |   MemReading     |  Reads in the memory in the memory files. (https://huggingface.co/Tachi67/MemoryReadingFlowModule)https://huggingface.co/Tachi67/MemoryReadingFlowModule
        +------------------+                    
                |
                | (code_library: function signatures of the library)
                |
                v
        +------------------+                     
        |   CodeGenerator  |  Generates code given goal, function signatures of the library. (https://huggingface.co/Tachi67/CodeGeneratorFlowModule)
        +------------------+                     
                |
                | (code, language_of_code)
                |
                v
        +-------------------+
        |  CodeFileEdit     | Edit a temp code file with the code generated. (https://huggingface.co/Tachi67/CodeFileEditFlowModule)
        +-------------------+                        
                |                                
                |  (temp_code_file_location)
                |                                
                v                                
        +------------------+                     
        |   ParseFeedback  |  Opens up the temp file until user closes the file, parse for user feedback. (https://huggingface.co/Tachi67/ParseFeedbackFlowModule)
        +------------------+                     
                |                                
                | (code, feedback)                      
                |                                
                v                                            
             code, feedback     

```

Memory_files:
- library.py

# Table of Contents

* [InteractiveCodeGenFlow](#InteractiveCodeGenFlow)
  * [InteractiveCodeGenFlow](#InteractiveCodeGenFlow.InteractiveCodeGenFlow)
* [\_\_init\_\_](#__init__)

<a id="InteractiveCodeGenFlow"></a>

# InteractiveCodeGenFlow

<a id="InteractiveCodeGenFlow.InteractiveCodeGenFlow"></a>

## InteractiveCodeGenFlow Objects

```python
class InteractiveCodeGenFlow(SequentialFlow)
```

This flow writes code in an interactive manner. It is a sequential flow composed of:
1. MemoryReading: reads in the code library.
2. CodeGenerator: generates code based on the goal and functions in the code library.
3. CodeFileEditor: writes the generated code to a temp file for the user to see, edit and provide feedback.
4. ParseFeedback: opens up the temp file with vscode and parses the feedback from the user.

*Input Interface*:
- `goal`

*Output Interface*:
- `code`
- `feedback`
- `temp_code_file_location`

<a id="__init__"></a>

# \_\_init\_\_

