Update ExtendLibraryFlow.py
Browse files- ExtendLibraryFlow.py +10 -0
ExtendLibraryFlow.py
CHANGED
|
@@ -4,6 +4,16 @@ log = logging.get_logger(__name__)
|
|
| 4 |
|
| 5 |
from flow_modules.Tachi67.AbstractBossFlowModule import AbstractBossFlow
|
| 6 |
class ExtendLibraryFlow(AbstractBossFlow):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
def run(self, input_data: Dict[str, Any]) -> Dict[str, Any]:
|
| 8 |
# ~~~ sets the input_data in the flow_state dict ~~~
|
| 9 |
self._state_update_dict(update_data=input_data)
|
|
|
|
| 4 |
|
| 5 |
from flow_modules.Tachi67.AbstractBossFlowModule import AbstractBossFlow
|
| 6 |
class ExtendLibraryFlow(AbstractBossFlow):
|
| 7 |
+
"""ExtendLibraryFlow is one branch executor of CoderFlow. At a higher level, it takes the goal
|
| 8 |
+
from the Coder, writes functions in an interactive way, test the code and append the newly written function to
|
| 9 |
+
the code library.
|
| 10 |
+
|
| 11 |
+
*Input Interface (expected input)*
|
| 12 |
+
- `goal` (str): The goal from the caller (source flow, i.e. CoderFlow)
|
| 13 |
+
*Output Interface (expected output)*
|
| 14 |
+
- `result` (str): The result of the flow, the result will be returned to the caller (i.e. CoderFlow).
|
| 15 |
+
- `summary` (str): The summary of the flow, the summary will be logged into the logs of the caller flow (i.e. CoderFlow).
|
| 16 |
+
"""
|
| 17 |
def run(self, input_data: Dict[str, Any]) -> Dict[str, Any]:
|
| 18 |
# ~~~ sets the input_data in the flow_state dict ~~~
|
| 19 |
self._state_update_dict(update_data=input_data)
|