Views
No views yet
goal
|
|
|
v
+------------------+
| PlanGenerator | Generates plan given goal. (https://huggingface.co/aiflows/PlanGeneratorFlowModule)
+------------------+
|
| (plan)
|
v
+-------------------+
| PlanFileEdit | Edit a temp file with the plan generated. (https://huggingface.co/aiflows/PlanFileEditFlowModule)
+-------------------+
|
| (temp_plan_file_location)
|
v
+------------------+
| ParseFeedback | Opens up the temp file until user closes the file, parse for user feedback. (https://huggingface.co/aiflows/ParseFeedbackFlowModule)
+------------------+
|
| (plan, feedback)
|
v
plan, feedback
class InteractivePlanGenFlow(SequentialFlow)goalplan_file_locationplanfeedbacktemp_plan_file_locationinput_interface: the input interface of the flow.output_interface: the output interface of the flow.subflows_config: the configuration of the subflows.early_exit_key: the key in the state dict that indicates whether the flow should exit early.topology: the topology of the subflows.def __init__(**kwargs)kwargs (Dict[str, Any]): the configuration of the flow.1@classmethod
2def instantiate_from_config(cls, config)config (Dict[str, Any]): the configuration of the flow.InteractivePlanGenFlow: the instantiated flow.def run(input_data: Dict[str, Any]) -> Dict[str, Any]input_data (Dict[str, Any]): the input data of the flow.Dict[str, Any]: the output data of the flow.