Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fix path problem

better629e3e49eee0355
diff --git a/examples/android_assistant/run_assistant.py b/examples/android_assistant/run_assistant.py
index fe8a40fda..c64323e72 100644
--- a/examples/android_assistant/run_assistant.py
+++ b/examples/android_assistant/run_assistant.py
@@ -62,7 +62,7 @@ def startup(
)
)
- team.hire([AndroidAssistant(output_root_dir=Path(__file__))])
+ team.hire([AndroidAssistant(output_root_dir=Path(__file__).parent)])
team.invest(investment)
team.run_project(idea=task_desc)
asyncio.run(team.run(n_round=n_round))
diff --git a/metagpt/actions/action_node.py b/metagpt/actions/action_node.py
index 6240dafe7..07638ce42 100644
--- a/metagpt/actions/action_node.py
+++ b/metagpt/actions/action_node.py
@@ -475,7 +475,6 @@ class ActionNode:
timeout=USE_CONFIG_TIMEOUT,
exclude=[],
):
- logger.info("进入fill")
"""Fill the node(s) with mode.
:param context: Everything we should know when filling node.
diff --git a/metagpt/ext/android_assistant/roles/android_assistant.py b/metagpt/ext/android_assistant/roles/android_assistant.py
index f4ab79485..e4d3f36d5 100644
--- a/metagpt/ext/android_assistant/roles/android_assistant.py
+++ b/metagpt/ext/android_assistant/roles/android_assistant.py
@@ -42,7 +42,9 @@ class AndroidAssistant(Role):
self._watch([UserRequirement, AndroidActionOutput])
self.task_desc = config.get_other("task_desc", "Just explore any app in this phone!")
app_name = config.get_other("app_name", "demo")
- data_dir = self.output_root_dir.absolute() or EXAMPLE_PATH.joinpath("android_assistant/output")
+ data_dir = self.output_root_dir.absolute().joinpath("output") or EXAMPLE_PATH.joinpath(
+ "android_assistant/output"
+ )
cur_datetime = datetime.fromtimestamp(int(time.time())).strftime("%Y-%m-%d_%H-%M-%S")
"""Firstly, we decide the state with user config, further, we can do it automatically, like if it's new app,