Update UpdatePlanAtomicFlow.py
Browse files1 unmodified line2345671 unmodified linefrom typing import Dict, Anyfrom aiflows.base_flows.atomic import AtomicFlowclass UpdatePlanAtomicFlow(AtomicFlow):def _check_input(self, input_data: Dict[str, Any]):assert "memory_files" in input_data, "memory_files not passed to UpdatePlanAtomicFlow.yaml"assert "plan" in input_data["memory_files"], "plan not in memory_files"1 unmodified line2345678910111213141516171 unmodified linefrom typing import Dict, Anyfrom aiflows.base_flows.atomic import AtomicFlowclass UpdatePlanAtomicFlow(AtomicFlow):"""This flow updates the plan file with the updated plan. The controller should pass the updated plan to this flow.This design (controller reflect on the existing plan--update plan) is intended to let the controller more aware of theplan it has. However one setback is that this process in then not deterministic.*Input Interface*- `updated_plan`: the updated plan in string format*Output Interface*- `result`: the result of the update plan operation"""def _check_input(self, input_data: Dict[str, Any]):assert "memory_files" in input_data, "memory_files not passed to UpdatePlanAtomicFlow.yaml"assert "plan" in input_data["memory_files"], "plan not in memory_files"
UpdatePlanAtomicFlow.py+10