Update CtrlExMem_CoderFlow.py
Browse files- CtrlExMem_CoderFlow.py +15 -0
CtrlExMem_CoderFlow.py
CHANGED
@@ -4,6 +4,21 @@ from flow_modules.Tachi67.AbstractBossFlowModule import CtrlExMemFlow
|
|
4 |
from aiflows.base_flows import CircularFlow
|
5 |
|
6 |
class CtrlExMem_CoderFlow(CtrlExMemFlow):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
def _on_reach_max_round(self):
|
8 |
self._state_update_dict({
|
9 |
"result": "the maximum amount of rounds was reached before the coder flow has done the job",
|
|
|
4 |
from aiflows.base_flows import CircularFlow
|
5 |
|
6 |
class CtrlExMem_CoderFlow(CtrlExMemFlow):
|
7 |
+
"""This class inherits from the CtrlExMemFlow class from AbstractBossFlowModule.
|
8 |
+
See: https://huggingface.co/Tachi67/AbstractBossFlowModule/blob/main/CtrlExMemFlow.py
|
9 |
+
|
10 |
+
*Input Interface*:
|
11 |
+
- `plan`
|
12 |
+
- `logs`
|
13 |
+
- `code_library`: the signatures and docstring of the functions in the code library.
|
14 |
+
- `memory_files`
|
15 |
+
- `goal`
|
16 |
+
|
17 |
+
*Output Interface*
|
18 |
+
- `result` (str): The result of the flow, the result will be returned to the caller.
|
19 |
+
- `summary` (str): The summary of the flow, the summary will be logged into the logs of the caller flow.
|
20 |
+
|
21 |
+
"""
|
22 |
def _on_reach_max_round(self):
|
23 |
self._state_update_dict({
|
24 |
"result": "the maximum amount of rounds was reached before the coder flow has done the job",
|