Views
No views yet
goal (info on the old plan), plan (old plan), plan_file_location
|
v
+---------------+
| Controller | --------<<<<-----------+
+---------------+ |
| |
| (command, command args) |
| |
v |
+------------------+ |
| Executor | Each branch is an |
| (Tree Structure) | executor |
+------------------+ |
| ^
| (summary) |
| |
v |
| |
+-> goes back to the Controller>-+
+-------------------+
| Branching |
| Executor |
+-------------------+
/ \
/ \
/ \
/ \
write_plan ask_user
class ReplanningAskUserFlow(HumanStandardInputFlow)questionfeedbacknew_planrequest_multi_line_input_flag: if True, the user can input multiple lines of text. Default: Falseend_of_input_string: the string that the user can input to indicate that the input is finished. Default: EOIquery_message_prompt_template: the template of the message that is sent to the user to ask for input.def run(input_data: Dict[str, Any]) -> Dict[str, Any]input_data: the input dataclass NewPlanGenFlow(PlanGeneratorAtomicFlow)goalold_plangoalold_plannew_plansystem_message_prompt_template: The template of the system message.init_human_message_prompt_template: The template of the init user message.human_message_prompt_template: The template of the user message.def __init__(**kwargs)kwargs: The configuration parameters of the flow module.class ReplanningFlow(PlanWriterFlow)goal (str): information on the old plan (e.g. what is wrong)plan (str): the old planplan_file_location (str): the location of the old plan fileplan (str): the new planstatus: "finished" or "unfinished"summary (str): summary of the flow, will be written to the log file of the caller flow.result (str): result of the flow, will be passed to the controller of the caller flow.1@CircularFlow.output_msg_payload_processor
2def detect_finish_or_continue(output_payload: Dict[str, Any],
3 src_flow) -> Dict[str, Any]output_payload: the message received from the PlanGeneratorsrc_flow: the PlanGenerator