Update CodeGeneratorAtomicFlow.py
Browse files- CodeGeneratorAtomicFlow.py +17 -1
CodeGeneratorAtomicFlow.py
CHANGED
@@ -6,7 +6,23 @@ from flow_modules.aiflows.ChatFlowModule import ChatAtomicFlow
|
|
6 |
|
7 |
|
8 |
class CodeGeneratorAtomicFlow(ChatAtomicFlow):
|
9 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
"""
|
11 |
def __init__(self, **kwargs):
|
12 |
super().__init__(**kwargs)
|
|
|
6 |
|
7 |
|
8 |
class CodeGeneratorAtomicFlow(ChatAtomicFlow):
|
9 |
+
"""This class wraps around the Chat API to generate code from a goal. One thing worth noting is that we need to
|
10 |
+
make sure the code generator does not write repetitive code that is present in the library, so we need to inject
|
11 |
+
the function signatures in the library to the system prompts.
|
12 |
+
|
13 |
+
*Input Interface Non Initialized*:
|
14 |
+
- `goal`
|
15 |
+
- `code_library`
|
16 |
+
- `memory_files`
|
17 |
+
|
18 |
+
*Input Interface Initialized*:
|
19 |
+
- `goal`
|
20 |
+
- `code_library`
|
21 |
+
- `memory_files`
|
22 |
+
|
23 |
+
*Output Interface*:
|
24 |
+
- `code`
|
25 |
+
- `language_of_code`
|
26 |
"""
|
27 |
def __init__(self, **kwargs):
|
28 |
super().__init__(**kwargs)
|