Upload run_planwriter.py
Browse files- run_planwriter.py +4 -2
run_planwriter.py
CHANGED
|
@@ -39,14 +39,16 @@ if __name__ == "__main__":
|
|
| 39 |
cfg["subflows_config"]["Controller"]["backend"]["api_infos"] = api_information
|
| 40 |
cfg["subflows_config"]["Executor"]["subflows_config"]["write_plan"]["subflows_config"]["PlanGenerator"]["backend"]["api_infos"] = api_information
|
| 41 |
|
| 42 |
-
# ~~~ setting memory file of planner (empty dict)~~~
|
| 43 |
-
cfg["subflows_config"]["Executor"]["subflows_config"]["
|
| 44 |
|
| 45 |
# ~~~ instantiating the flow and input data ~~~
|
| 46 |
PlanWriterFlow = hydra.utils.instantiate(cfg, _recursive_=False, _convert_="partial")
|
| 47 |
|
| 48 |
# ~~~ creating the plan file location (of the upper level flow e.g. ExtLib)
|
| 49 |
plan_file_location = os.path.join(current_dir, "ExtLib_plan.txt")
|
|
|
|
|
|
|
| 50 |
|
| 51 |
input_data = {
|
| 52 |
"goal": "create a function that adds two numbers and returns the result",
|
|
|
|
| 39 |
cfg["subflows_config"]["Controller"]["backend"]["api_infos"] = api_information
|
| 40 |
cfg["subflows_config"]["Executor"]["subflows_config"]["write_plan"]["subflows_config"]["PlanGenerator"]["backend"]["api_infos"] = api_information
|
| 41 |
|
| 42 |
+
# # ~~~ setting memory file of planner (empty dict)~~~
|
| 43 |
+
# cfg["subflows_config"]["Executor"]["subflows_config"]["write_plan"]["memory_files"] = {}
|
| 44 |
|
| 45 |
# ~~~ instantiating the flow and input data ~~~
|
| 46 |
PlanWriterFlow = hydra.utils.instantiate(cfg, _recursive_=False, _convert_="partial")
|
| 47 |
|
| 48 |
# ~~~ creating the plan file location (of the upper level flow e.g. ExtLib)
|
| 49 |
plan_file_location = os.path.join(current_dir, "ExtLib_plan.txt")
|
| 50 |
+
with open(plan_file_location, 'w') as file:
|
| 51 |
+
pass
|
| 52 |
|
| 53 |
input_data = {
|
| 54 |
"goal": "create a function that adds two numbers and returns the result",
|