Tachi67 commited on
Commit
424f6b7
1 Parent(s): e2f2906

Update ReplanningFlow.yaml

Browse files
Files changed (1) hide show
  1. ReplanningFlow.yaml +14 -14
ReplanningFlow.yaml CHANGED
@@ -72,7 +72,7 @@ subflows_config:
72
  template_format: jinja2
73
 
74
  human_message_prompt_template:
75
- _target_: flows.prompt_template.JinjaPrompt
76
  template: |2-
77
  Here is the new plan written by the planner, it might have been updated by the user, depending on the user's feedback:
78
  {{new_plan}}
@@ -84,7 +84,7 @@ subflows_config:
84
  template_format: jinja2
85
 
86
  init_human_message_prompt_template:
87
- _target_: flows.prompt_template.JinjaPrompt
88
  template: |2-
89
  Here is the information about the old plan:
90
  {{goal}}
@@ -93,7 +93,7 @@ subflows_config:
93
  template_format: jinja2
94
 
95
  Executor:
96
- _target_: flows.base_flows.BranchingFlow.instantiate_from_default_config
97
  subflows_config:
98
  write_plan:
99
  _target_: Tachi67.InteractivePlanGenFlowModule.InteractivePlanGenFlow.instantiate_from_default_config
@@ -125,28 +125,28 @@ subflows_config:
125
  topology:
126
  - goal: "Generate plan to achieve the task."
127
  input_interface:
128
- _target_: flows.interfaces.KeyInterface
129
  additional_transformations:
130
- - _target_: flows.data_transformations.KeyMatchInput
131
  flow: PlanGenerator
132
  reset: false
133
 
134
  - goal: "Write the plan generated to a temp file with instructions to the user"
135
  input_interface:
136
- _target_: flows.interfaces.KeyInterface
137
  additional_transformations:
138
- - _target_: flows.data_transformations.KeyMatchInput
139
  flow: PlanFileEditor
140
  reset: false
141
 
142
  - goal: "Parse user feedback from the temp file"
143
  input_interface:
144
- _target_: flows.interfaces.KeyInterface
145
  additional_transformations:
146
- - _target_: flows.data_transformations.KeyMatchInput
147
  flow: ParseFeedback
148
  output_interface:
149
- _target_: flows.interfaces.KeyInterface
150
  keys_to_rename:
151
  plan: new_plan
152
  reset: false
@@ -160,9 +160,9 @@ early_exit_key: "EARLY_EXIT"
160
  topology:
161
  - goal: "Select the next action and prepare the input for the executor."
162
  input_interface:
163
- _target_: flows.interfaces.KeyInterface
164
  additional_transformations:
165
- - _target_: flows.data_transformations.KeyMatchInput
166
  flow: Controller
167
  output_interface:
168
  _target_: ReplanningFlow.detect_finish_or_continue
@@ -170,14 +170,14 @@ topology:
170
 
171
  - goal: "Execute the action specified by the Controller."
172
  input_interface:
173
- _target_: flows.interfaces.KeyInterface
174
  keys_to_rename:
175
  command: branch
176
  command_args: branch_input_data
177
  keys_to_select: ["branch", "branch_input_data"]
178
  flow: Executor
179
  output_interface:
180
- _target_: flows.interfaces.KeyInterface
181
  keys_to_rename:
182
  branch_output_data: observation
183
  keys_to_unpack: ["observation"]
 
72
  template_format: jinja2
73
 
74
  human_message_prompt_template:
75
+ _target_: aiflows.prompt_template.JinjaPrompt
76
  template: |2-
77
  Here is the new plan written by the planner, it might have been updated by the user, depending on the user's feedback:
78
  {{new_plan}}
 
84
  template_format: jinja2
85
 
86
  init_human_message_prompt_template:
87
+ _target_: aiflows.prompt_template.JinjaPrompt
88
  template: |2-
89
  Here is the information about the old plan:
90
  {{goal}}
 
93
  template_format: jinja2
94
 
95
  Executor:
96
+ _target_: aiflows.base_flows.BranchingFlow.instantiate_from_default_config
97
  subflows_config:
98
  write_plan:
99
  _target_: Tachi67.InteractivePlanGenFlowModule.InteractivePlanGenFlow.instantiate_from_default_config
 
125
  topology:
126
  - goal: "Generate plan to achieve the task."
127
  input_interface:
128
+ _target_: aiflows.interfaces.KeyInterface
129
  additional_transformations:
130
+ - _target_: aiflows.data_transformations.KeyMatchInput
131
  flow: PlanGenerator
132
  reset: false
133
 
134
  - goal: "Write the plan generated to a temp file with instructions to the user"
135
  input_interface:
136
+ _target_: aiflows.interfaces.KeyInterface
137
  additional_transformations:
138
+ - _target_: aiflows.data_transformations.KeyMatchInput
139
  flow: PlanFileEditor
140
  reset: false
141
 
142
  - goal: "Parse user feedback from the temp file"
143
  input_interface:
144
+ _target_: aiflows.interfaces.KeyInterface
145
  additional_transformations:
146
+ - _target_: aiflows.data_transformations.KeyMatchInput
147
  flow: ParseFeedback
148
  output_interface:
149
+ _target_: aiflows.interfaces.KeyInterface
150
  keys_to_rename:
151
  plan: new_plan
152
  reset: false
 
160
  topology:
161
  - goal: "Select the next action and prepare the input for the executor."
162
  input_interface:
163
+ _target_: aiflows.interfaces.KeyInterface
164
  additional_transformations:
165
+ - _target_: aiflows.data_transformations.KeyMatchInput
166
  flow: Controller
167
  output_interface:
168
  _target_: ReplanningFlow.detect_finish_or_continue
 
170
 
171
  - goal: "Execute the action specified by the Controller."
172
  input_interface:
173
+ _target_: aiflows.interfaces.KeyInterface
174
  keys_to_rename:
175
  command: branch
176
  command_args: branch_input_data
177
  keys_to_select: ["branch", "branch_input_data"]
178
  flow: Executor
179
  output_interface:
180
+ _target_: aiflows.interfaces.KeyInterface
181
  keys_to_rename:
182
  branch_output_data: observation
183
  keys_to_unpack: ["observation"]