Tachi67 commited on
Commit
0144a65
·
1 Parent(s): cc5fa55

Update InteractivePlanGenFlow.py

Browse files
Files changed (1) hide show
  1. InteractivePlanGenFlow.py +14 -0
InteractivePlanGenFlow.py CHANGED
@@ -8,6 +8,20 @@ logging.set_verbosity_debug()
8
  log = logging.get_logger(__name__)
9
 
10
  class InteractivePlanGenFlow(SequentialFlow):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  REQUIRED_KEYS_CONFIG = ["max_rounds", "early_exit_key", "topology"]
12
 
13
  def __init__(
 
8
  log = logging.get_logger(__name__)
9
 
10
  class InteractivePlanGenFlow(SequentialFlow):
11
+ """This flow writes code in an interactive manner. It is a sequential flow composed of:
12
+ 1. PlanGenerator: generates plan based on the goal.
13
+ 2. PlanFileEditor: writes the generated plan to a temp file for the user to see, edit and provide feedback.
14
+ 3. ParseFeedback: opens up the temp file with vscode and parses the feedback from the user.
15
+
16
+ *Input Interface*:
17
+ - `goal`
18
+ - `plan_file_location`
19
+
20
+ *Output Interface*:
21
+ - `plan`
22
+ - `feedback`
23
+ - `temp_plan_file_location`
24
+ """
25
  REQUIRED_KEYS_CONFIG = ["max_rounds", "early_exit_key", "topology"]
26
 
27
  def __init__(