Update ReplanningFlow.yaml
Browse files- ReplanningFlow.yaml +33 -2
ReplanningFlow.yaml
CHANGED
|
@@ -97,6 +97,10 @@ subflows_config:
|
|
| 97 |
subflows_config:
|
| 98 |
write_plan:
|
| 99 |
_target_: Tachi67.InteractivePlanGenFlowModule.InteractivePlanGenFlow.instantiate_from_default_config
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
subflows_config:
|
| 101 |
PlanGenerator:
|
| 102 |
_target_: Tachi67.ReplanningFlowModule.NewPlanGenFlow.instantiate_from_default_config
|
|
@@ -105,13 +109,11 @@ subflows_config:
|
|
| 105 |
model_name:
|
| 106 |
openai: gpt-4
|
| 107 |
azure: azure/gpt-4
|
| 108 |
-
|
| 109 |
PlanFileEditor:
|
| 110 |
_target_: Tachi67.PlanFileEditFlowModule.PlanFileEditAtomicFlow.instantiate_from_default_config
|
| 111 |
input_interface:
|
| 112 |
- "new_plan"
|
| 113 |
- "plan_file_location"
|
| 114 |
-
|
| 115 |
ParseFeedback:
|
| 116 |
_target_: Tachi67.ParseFeedbackFlowModule.ParseFeedbackAtomicFlow.instantiate_from_default_config
|
| 117 |
input_interface:
|
|
@@ -121,6 +123,35 @@ subflows_config:
|
|
| 121 |
- "new_plan"
|
| 122 |
- "feedback"
|
| 123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
ask_user:
|
| 125 |
_target_: Tachi67.ReplanningFlowModule.ReplanningAskUserFlow.instantiate_from_default_config
|
| 126 |
|
|
|
|
| 97 |
subflows_config:
|
| 98 |
write_plan:
|
| 99 |
_target_: Tachi67.InteractivePlanGenFlowModule.InteractivePlanGenFlow.instantiate_from_default_config
|
| 100 |
+
output_interface:
|
| 101 |
+
- "new_plan"
|
| 102 |
+
- "feedback"
|
| 103 |
+
- "temp_plan_file_location"
|
| 104 |
subflows_config:
|
| 105 |
PlanGenerator:
|
| 106 |
_target_: Tachi67.ReplanningFlowModule.NewPlanGenFlow.instantiate_from_default_config
|
|
|
|
| 109 |
model_name:
|
| 110 |
openai: gpt-4
|
| 111 |
azure: azure/gpt-4
|
|
|
|
| 112 |
PlanFileEditor:
|
| 113 |
_target_: Tachi67.PlanFileEditFlowModule.PlanFileEditAtomicFlow.instantiate_from_default_config
|
| 114 |
input_interface:
|
| 115 |
- "new_plan"
|
| 116 |
- "plan_file_location"
|
|
|
|
| 117 |
ParseFeedback:
|
| 118 |
_target_: Tachi67.ParseFeedbackFlowModule.ParseFeedbackAtomicFlow.instantiate_from_default_config
|
| 119 |
input_interface:
|
|
|
|
| 123 |
- "new_plan"
|
| 124 |
- "feedback"
|
| 125 |
|
| 126 |
+
topology:
|
| 127 |
+
- goal: "Generate plan to achieve the task."
|
| 128 |
+
input_interface:
|
| 129 |
+
_target_: flows.interfaces.KeyInterface
|
| 130 |
+
additional_transformations:
|
| 131 |
+
- _target_: flows.data_transformations.KeyMatchInput
|
| 132 |
+
flow: PlanGenerator
|
| 133 |
+
reset: false
|
| 134 |
+
|
| 135 |
+
- goal: "Write the plan generated to a temp file with instructions to the user"
|
| 136 |
+
input_interface:
|
| 137 |
+
_target_: flows.interfaces.KeyInterface
|
| 138 |
+
additional_transformations:
|
| 139 |
+
- _target_: flows.data_transformations.KeyMatchInput
|
| 140 |
+
flow: PlanFileEditor
|
| 141 |
+
reset: false
|
| 142 |
+
|
| 143 |
+
- goal: "Parse user feedback from the temp file"
|
| 144 |
+
input_interface:
|
| 145 |
+
_target_: flows.interfaces.KeyInterface
|
| 146 |
+
additional_transformations:
|
| 147 |
+
- _target_: flows.data_transformations.KeyMatchInput
|
| 148 |
+
flow: ParseFeedback
|
| 149 |
+
output_interface:
|
| 150 |
+
_target_: flows.interfaces.KeyInterface
|
| 151 |
+
keys_to_rename:
|
| 152 |
+
plan: new_plan
|
| 153 |
+
reset: false
|
| 154 |
+
|
| 155 |
ask_user:
|
| 156 |
_target_: Tachi67.ReplanningFlowModule.ReplanningAskUserFlow.instantiate_from_default_config
|
| 157 |
|