Tachi67 commited on
Commit
b8aaae2
·
1 Parent(s): fa89d9c

Update CoderFlow.py

Browse files
Files changed (1) hide show
  1. CoderFlow.py +10 -0
CoderFlow.py CHANGED
@@ -14,9 +14,19 @@ class CoderFlow(AbstractBossFlow):
14
 
15
  *Input Interface (expected input)*
16
  - `goal` (str): The goal from the caller (source flow, i.e. JarvisFlow)
 
 
17
  *Output Interface (expected output)*
18
  - `result` (str): The result of the flow, the result will be returned to the caller (i.e. JarvisFlow).
19
  - `summary` (str): The summary of the flow, the summary will be logged into the logs of the caller flow (i.e. JarvisFlow).
 
 
 
 
 
 
 
 
20
  """
21
  def run(self, input_data: Dict[str, Any]) -> Dict[str, Any]:
22
  # ~~~ sets the input_data in the flow_state dict ~~~
 
14
 
15
  *Input Interface (expected input)*
16
  - `goal` (str): The goal from the caller (source flow, i.e. JarvisFlow)
17
+
18
+
19
  *Output Interface (expected output)*
20
  - `result` (str): The result of the flow, the result will be returned to the caller (i.e. JarvisFlow).
21
  - `summary` (str): The summary of the flow, the summary will be logged into the logs of the caller flow (i.e. JarvisFlow).
22
+
23
+ Typical workflow of Coder:
24
+ 0. JarvisFlow calls Coder with a goal.
25
+ 1. MemoryReading reads plans, logs and code library.
26
+ 2. Planner makes plan based on goal.
27
+ 3. Extend library with the goal given by the controller.
28
+ 4. Run code with code (possibly calls the newly written function) given by the controller.
29
+ 5. Finish and give an answer.
30
  """
31
  def run(self, input_data: Dict[str, Any]) -> Dict[str, Any]:
32
  # ~~~ sets the input_data in the flow_state dict ~~~