🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
rename folder
better629af3296a6f52b
diff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/test_memory/kw_strength.json b/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/test_memory/kw_strength.jsondeleted file mode 100644index 041a8bd0c..000000000--- a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/test_memory/kw_strength.json+++ /dev/null@@ -1,4 +0,0 @@-{- "kw_strength_event": {},- "kw_strength_thought": {}-}\ No newline at end of filediff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/embeddings.json b/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/embeddings.jsondeleted file mode 100644index 9e26dfeeb..000000000--- a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/embeddings.json+++ /dev/null@@ -1 +0,0 @@-{}\ No newline at end of filediff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/nodes.json b/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/nodes.jsondeleted file mode 100644index 9e26dfeeb..000000000--- a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/nodes.json+++ /dev/null@@ -1 +0,0 @@-{}\ No newline at end of filediff --git a/examples/st_game/.gitignore b/examples/stanford_town/.gitignoresimilarity index 100%rename from examples/st_game/.gitignorerename to examples/stanford_town/.gitignorediff --git a/examples/st_game/README.md b/examples/stanford_town/README.mdsimilarity index 77%rename from examples/st_game/README.mdrename to examples/stanford_town/README.mdindex 114f7f672..915c61356 100644--- a/examples/st_game/README.md+++ b/examples/stanford_town/README.md@@ -1,7 +1,7 @@## Stanford Town Game### Pre-Description-The path configured in `examples/st_game/utils/const.py` is the storage path of the current project. In order to facilitate GA( [generative_agents](https://github.com/joonspk-research/generative_agents) )'s frontend docking data (to avoid changing its code), you can set the value `temp_storage_path` to `temp_storage` of `generative_agents` when start `run_st_game.py`. like+The path configured in `examples/stanford_town/utils/const.py` is the storage path of the current project. In order to facilitate GA( [generative_agents](https://github.com/joonspk-research/generative_agents) )'s frontend docking data (to avoid changing its code), you can set the value `temp_storage_path` to `temp_storage` of `generative_agents` when start `run_st_game.py`. like`python3 run_st_game.py --temp_storage_path path/to/ga/temp_storage xxx`@@ -17,7 +17,7 @@ TEMP_STORAGE_PATH = Path("{path/to/ga/temp_storage}")This can be used to achieve docking of simulation data without changing the GA code. Otherwise, the GA code must be modified to adapt to the MG output path.-If you don't want to start from 0, copy other simulation directories under `generative_agents/environment/frontend_server/storage/` to `examples/st_game/storage`, and select a directory named `fork_sim_code`.+If you don't want to start from 0, copy other simulation directories under `generative_agents/environment/frontend_server/storage/` to `examples/stanford_town/storage`, and select a directory named `fork_sim_code`.### Backend service startupThe execution entry is `python3 run_st_game.py "Host a open lunch party at 13:00 pm" "base_the_ville_isabella_maria_klaus" "test_sim" 10`diff --git a/examples/st_game/README_CN.md b/examples/stanford_town/README_CN.mdsimilarity index 77%rename from examples/st_game/README_CN.mdrename to examples/stanford_town/README_CN.mdindex 84470f5c2..445a5b1b3 100644--- a/examples/st_game/README_CN.md+++ b/examples/stanford_town/README_CN.md@@ -1,7 +1,7 @@## Stanford Town Game### 前置-`examples/st_game/utils/const.py`配置的路径为当前项目的存储路径,为了方便GA( [generative_agents](https://github.com/joonspk-research/generative_agents) )的前端对接数据(避免改动它那块的代码),可在启动`run_st_game.py`加上`temp_storage_path`指向`generative_agents`对应的`temp_storage`路径。比如+`examples/stanford_town/utils/const.py`配置的路径为当前项目的存储路径,为了方便GA( [generative_agents](https://github.com/joonspk-research/generative_agents) )的前端对接数据(避免改动它那块的代码),可在启动`run_st_game.py`加上`temp_storage_path`指向`generative_agents`对应的`temp_storage`路径。比如`python3 run_st_game.py --temp_storage_path path/to/ga/temp_storage xxx`@@ -16,7 +16,7 @@ TEMP_STORAGE_PATH = Path("{path/to/ga/temp_storage}")```这样可用实现不改变GA代码情况下,实现仿真数据的对接。不然得修改GA的代码来适配MG的输出路径。-如果你不想从0开始启动,拷贝`generative_agents/environment/frontend_server/storage/`下的其他仿真目录到`examples/st_game/storage`,并选择一个目录名作为`fork_sim_code`。+如果你不想从0开始启动,拷贝`generative_agents/environment/frontend_server/storage/`下的其他仿真目录到`examples/stanford_town/storage`,并选择一个目录名作为`fork_sim_code`。### 后端服务启动执行入口为:`python3 run_st_game.py "Host a open lunch party at 13:00 pm" "base_the_ville_isabella_maria_klaus" "test_sim" 10`diff --git a/examples/st_game/__init__.py b/examples/stanford_town/__init__.pysimilarity index 100%rename from examples/st_game/__init__.pyrename to examples/stanford_town/__init__.pydiff --git a/examples/st_game/actions/__init__.py b/examples/stanford_town/actions/__init__.pysimilarity index 100%rename from examples/st_game/actions/__init__.pyrename to examples/stanford_town/actions/__init__.pydiff --git a/examples/st_game/actions/agent_chat_sum_rel.py b/examples/stanford_town/actions/agent_chat_sum_rel.pysimilarity index 95%rename from examples/st_game/actions/agent_chat_sum_rel.pyrename to examples/stanford_town/actions/agent_chat_sum_rel.pyindex 00f15e82f..3e564a60c 100644--- a/examples/st_game/actions/agent_chat_sum_rel.py+++ b/examples/stanford_town/actions/agent_chat_sum_rel.py@@ -2,7 +2,7 @@# -*- coding: utf-8 -*-# @Desc : summarize relationship in a agent chat-from examples.st_game.actions.st_action import STAction+from examples.stanford_town.actions.st_action import STActionfrom metagpt.logs import loggerdiff --git a/examples/st_game/actions/decide_to_talk.py b/examples/stanford_town/actions/decide_to_talk.pysimilarity index 98%rename from examples/st_game/actions/decide_to_talk.pyrename to examples/stanford_town/actions/decide_to_talk.pyindex cabb5ceff..414ee7e36 100644--- a/examples/st_game/actions/decide_to_talk.py+++ b/examples/stanford_town/actions/decide_to_talk.py@@ -2,7 +2,7 @@# -*- coding: utf-8 -*-# @Desc : device to talk to another role, return yes or no-from examples.st_game.actions.st_action import STAction+from examples.stanford_town.actions.st_action import STActionfrom metagpt.logs import loggerdiff --git a/examples/st_game/actions/dummy_action.py b/examples/stanford_town/actions/dummy_action.pysimilarity index 100%rename from examples/st_game/actions/dummy_action.pyrename to examples/stanford_town/actions/dummy_action.pydiff --git a/examples/st_game/actions/gen_action_details.py b/examples/stanford_town/actions/gen_action_details.pysimilarity index 99%rename from examples/st_game/actions/gen_action_details.pyrename to examples/stanford_town/actions/gen_action_details.pyindex 6af2cb338..0eb7cb701 100644--- a/examples/st_game/actions/gen_action_details.py+++ b/examples/stanford_town/actions/gen_action_details.py@@ -4,7 +4,7 @@import random-from metagpt.environment.stanford_town_env.env_space import EnvObsParams, EnvObsType+from metagpt.environment.stanford_town.env_space import EnvObsParams, EnvObsTypefrom metagpt.logs import loggerfrom .st_action import STActiondiff --git a/examples/st_game/actions/gen_daily_schedule.py b/examples/stanford_town/actions/gen_daily_schedule.pysimilarity index 100%rename from examples/st_game/actions/gen_daily_schedule.pyrename to examples/stanford_town/actions/gen_daily_schedule.pydiff --git a/examples/st_game/actions/gen_hourly_schedule.py b/examples/stanford_town/actions/gen_hourly_schedule.pysimilarity index 100%rename from examples/st_game/actions/gen_hourly_schedule.pyrename to examples/stanford_town/actions/gen_hourly_schedule.pydiff --git a/examples/st_game/actions/gen_iter_chat_utt.py b/examples/stanford_town/actions/gen_iter_chat_utt.pysimilarity index 95%rename from examples/st_game/actions/gen_iter_chat_utt.pyrename to examples/stanford_town/actions/gen_iter_chat_utt.pyindex eb5f569c7..82104b6ca 100644--- a/examples/st_game/actions/gen_iter_chat_utt.py+++ b/examples/stanford_town/actions/gen_iter_chat_utt.py@@ -2,9 +2,9 @@# -*- coding: utf-8 -*-# @Desc : generate_iterative_chat_utt-from examples.st_game.actions.st_action import STAction-from examples.st_game.utils.utils import extract_first_json_dict-from metagpt.environment.stanford_town_env.env_space import EnvObsParams, EnvObsType+from examples.stanford_town.actions.st_action import STAction+from examples.stanford_town.utils.utils import extract_first_json_dict+from metagpt.environment.stanford_town.env_space import EnvObsParams, EnvObsTypefrom metagpt.logs import loggerdiff --git a/examples/st_game/actions/inner_voice_action.py b/examples/stanford_town/actions/inner_voice_action.pysimilarity index 94%rename from examples/st_game/actions/inner_voice_action.pyrename to examples/stanford_town/actions/inner_voice_action.pyindex cfbdf0303..121f1dcee 100644--- a/examples/st_game/actions/inner_voice_action.py+++ b/examples/stanford_town/actions/inner_voice_action.py@@ -1,4 +1,4 @@-from examples.st_game.actions.st_action import STAction+from examples.stanford_town.actions.st_action import STActionfrom metagpt.logs import loggerdiff --git a/examples/st_game/actions/new_decomp_schedule.py b/examples/stanford_town/actions/new_decomp_schedule.pysimilarity index 98%rename from examples/st_game/actions/new_decomp_schedule.pyrename to examples/stanford_town/actions/new_decomp_schedule.pyindex 8e5c79401..c7078be9c 100644--- a/examples/st_game/actions/new_decomp_schedule.py+++ b/examples/stanford_town/actions/new_decomp_schedule.py@@ -4,7 +4,7 @@import datetime-from examples.st_game.actions.st_action import STAction+from examples.stanford_town.actions.st_action import STActionfrom metagpt.logs import loggerdiff --git a/examples/st_game/actions/run_reflect_action.py b/examples/stanford_town/actions/run_reflect_action.pysimilarity index 99%rename from examples/st_game/actions/run_reflect_action.pyrename to examples/stanford_town/actions/run_reflect_action.pyindex d3bf008cb..055c03db4 100644--- a/examples/st_game/actions/run_reflect_action.py+++ b/examples/stanford_town/actions/run_reflect_action.py@@ -4,7 +4,7 @@import re-from examples.st_game.actions.st_action import STAction+from examples.stanford_town.actions.st_action import STActionfrom metagpt.logs import loggerdiff --git a/examples/st_game/actions/st_action.py b/examples/stanford_town/actions/st_action.pysimilarity index 98%rename from examples/st_game/actions/st_action.pyrename to examples/stanford_town/actions/st_action.pyindex 81f66c080..72ef851e0 100644--- a/examples/st_game/actions/st_action.py+++ b/examples/stanford_town/actions/st_action.py@@ -7,7 +7,7 @@ from abc import abstractmethodfrom pathlib import Pathfrom typing import Any, Optional, Union-from examples.st_game.utils.const import PROMPTS_DIR+from examples.stanford_town.utils.const import PROMPTS_DIRfrom metagpt.actions.action import Actionfrom metagpt.config2 import configfrom metagpt.logs import loggerdiff --git a/examples/st_game/actions/summarize_conv.py b/examples/stanford_town/actions/summarize_conv.pysimilarity index 96%rename from examples/st_game/actions/summarize_conv.pyrename to examples/stanford_town/actions/summarize_conv.pyindex f35651b35..f01fb36ad 100644--- a/examples/st_game/actions/summarize_conv.py+++ b/examples/stanford_town/actions/summarize_conv.py@@ -2,7 +2,7 @@# -*- coding: utf-8 -*-# @Desc : summarize the content of agents' conversation-from examples.st_game.actions.st_action import STAction+from examples.stanford_town.actions.st_action import STActionfrom metagpt.logs import loggerdiff --git a/examples/st_game/actions/task_decomp.py b/examples/stanford_town/actions/task_decomp.pysimilarity index 100%rename from examples/st_game/actions/task_decomp.pyrename to examples/stanford_town/actions/task_decomp.pydiff --git a/examples/st_game/actions/wake_up.py b/examples/stanford_town/actions/wake_up.pysimilarity index 100%rename from examples/st_game/actions/wake_up.pyrename to examples/stanford_town/actions/wake_up.pydiff --git a/examples/st_game/memory/__init__.py b/examples/stanford_town/memory/__init__.pysimilarity index 100%rename from examples/st_game/memory/__init__.pyrename to examples/stanford_town/memory/__init__.pydiff --git a/examples/st_game/memory/agent_memory.py b/examples/stanford_town/memory/agent_memory.pysimilarity index 100%rename from examples/st_game/memory/agent_memory.pyrename to examples/stanford_town/memory/agent_memory.pydiff --git a/examples/st_game/memory/retrieve.py b/examples/stanford_town/memory/retrieve.pysimilarity index 97%rename from examples/st_game/memory/retrieve.pyrename to examples/stanford_town/memory/retrieve.pyindex eeeecf85a..db3a87bea 100644--- a/examples/st_game/memory/retrieve.py+++ b/examples/stanford_town/memory/retrieve.py@@ -7,8 +7,8 @@ import datetimefrom numpy import dotfrom numpy.linalg import norm-from examples.st_game.memory.agent_memory import BasicMemory-from examples.st_game.utils.utils import get_embedding+from examples.stanford_town.memory.agent_memory import BasicMemory+from examples.stanford_town.utils.utils import get_embeddingdef agent_retrieve(diff --git a/examples/st_game/memory/scratch.py b/examples/stanford_town/memory/scratch.pysimilarity index 100%rename from examples/st_game/memory/scratch.pyrename to examples/stanford_town/memory/scratch.pydiff --git a/examples/st_game/memory/spatial_memory.py b/examples/stanford_town/memory/spatial_memory.pysimilarity index 100%rename from examples/st_game/memory/spatial_memory.pyrename to examples/stanford_town/memory/spatial_memory.pydiff --git a/examples/st_game/plan/__init__.py b/examples/stanford_town/plan/__init__.pysimilarity index 100%rename from examples/st_game/plan/__init__.pyrename to examples/stanford_town/plan/__init__.pydiff --git a/examples/st_game/plan/converse.py b/examples/stanford_town/plan/converse.pysimilarity index 94%rename from examples/st_game/plan/converse.pyrename to examples/stanford_town/plan/converse.pyindex 0371b3d44..b0ff54b68 100644--- a/examples/st_game/plan/converse.py+++ b/examples/stanford_town/plan/converse.py@@ -4,9 +4,9 @@from typing import Tuple-from examples.st_game.actions.agent_chat_sum_rel import AgentChatSumRel-from examples.st_game.actions.gen_iter_chat_utt import GenIterChatUTT-from examples.st_game.memory.retrieve import new_agent_retrieve+from examples.stanford_town.actions.agent_chat_sum_rel import AgentChatSumRel+from examples.stanford_town.actions.gen_iter_chat_utt import GenIterChatUTT+from examples.stanford_town.memory.retrieve import new_agent_retrievefrom metagpt.logs import loggerdiff --git a/examples/st_game/plan/st_plan.py b/examples/stanford_town/plan/st_plan.pysimilarity index 100%rename from examples/st_game/plan/st_plan.pyrename to examples/stanford_town/plan/st_plan.pydiff --git a/examples/st_game/prompts/__init__.py b/examples/stanford_town/prompts/__init__.pysimilarity index 100%rename from examples/st_game/prompts/__init__.pyrename to examples/stanford_town/prompts/__init__.pydiff --git a/examples/st_game/prompts/action_location_object_vMar11.txt b/examples/stanford_town/prompts/action_location_object_vMar11.txtsimilarity index 100%rename from examples/st_game/prompts/action_location_object_vMar11.txtrename to examples/stanford_town/prompts/action_location_object_vMar11.txtdiff --git a/examples/st_game/prompts/action_location_sector_v1.txt b/examples/stanford_town/prompts/action_location_sector_v1.txtsimilarity index 100%rename from examples/st_game/prompts/action_location_sector_v1.txtrename to examples/stanford_town/prompts/action_location_sector_v1.txtdiff --git a/examples/st_game/prompts/action_object_v2.txt b/examples/stanford_town/prompts/action_object_v2.txtsimilarity index 100%rename from examples/st_game/prompts/action_object_v2.txtrename to examples/stanford_town/prompts/action_object_v2.txtdiff --git a/examples/st_game/prompts/daily_planning_v6.txt b/examples/stanford_town/prompts/daily_planning_v6.txtsimilarity index 100%rename from examples/st_game/prompts/daily_planning_v6.txtrename to examples/stanford_town/prompts/daily_planning_v6.txtdiff --git a/examples/st_game/prompts/decide_to_talk_v2.txt b/examples/stanford_town/prompts/decide_to_talk_v2.txtsimilarity index 100%rename from examples/st_game/prompts/decide_to_talk_v2.txtrename to examples/stanford_town/prompts/decide_to_talk_v2.txtdiff --git a/examples/st_game/prompts/generate_event_triple_v1.txt b/examples/stanford_town/prompts/generate_event_triple_v1.txtsimilarity index 100%rename from examples/st_game/prompts/generate_event_triple_v1.txtrename to examples/stanford_town/prompts/generate_event_triple_v1.txtdiff --git a/examples/st_game/prompts/generate_focal_pt_v1.txt b/examples/stanford_town/prompts/generate_focal_pt_v1.txtsimilarity index 100%rename from examples/st_game/prompts/generate_focal_pt_v1.txtrename to examples/stanford_town/prompts/generate_focal_pt_v1.txtdiff --git a/examples/st_game/prompts/generate_hourly_schedule_v2.txt b/examples/stanford_town/prompts/generate_hourly_schedule_v2.txtsimilarity index 100%rename from examples/st_game/prompts/generate_hourly_schedule_v2.txtrename to examples/stanford_town/prompts/generate_hourly_schedule_v2.txtdiff --git a/examples/st_game/prompts/generate_obj_event_v1.txt b/examples/stanford_town/prompts/generate_obj_event_v1.txtsimilarity index 100%rename from examples/st_game/prompts/generate_obj_event_v1.txtrename to examples/stanford_town/prompts/generate_obj_event_v1.txtdiff --git a/examples/st_game/prompts/generate_pronunciatio_v1.txt b/examples/stanford_town/prompts/generate_pronunciatio_v1.txtsimilarity index 100%rename from examples/st_game/prompts/generate_pronunciatio_v1.txtrename to examples/stanford_town/prompts/generate_pronunciatio_v1.txtdiff --git a/examples/st_game/prompts/insight_and_evidence_v1.txt b/examples/stanford_town/prompts/insight_and_evidence_v1.txtsimilarity index 100%rename from examples/st_game/prompts/insight_and_evidence_v1.txtrename to examples/stanford_town/prompts/insight_and_evidence_v1.txtdiff --git a/examples/st_game/prompts/iterative_convo_v1.txt b/examples/stanford_town/prompts/iterative_convo_v1.txtsimilarity index 100%rename from examples/st_game/prompts/iterative_convo_v1.txtrename to examples/stanford_town/prompts/iterative_convo_v1.txtdiff --git a/examples/st_game/prompts/memo_on_convo_v1.txt b/examples/stanford_town/prompts/memo_on_convo_v1.txtsimilarity index 100%rename from examples/st_game/prompts/memo_on_convo_v1.txtrename to examples/stanford_town/prompts/memo_on_convo_v1.txtdiff --git a/examples/st_game/prompts/new_decomp_schedule_v1.txt b/examples/stanford_town/prompts/new_decomp_schedule_v1.txtsimilarity index 100%rename from examples/st_game/prompts/new_decomp_schedule_v1.txtrename to examples/stanford_town/prompts/new_decomp_schedule_v1.txtdiff --git a/examples/st_game/prompts/planning_thought_on_convo_v1.txt b/examples/stanford_town/prompts/planning_thought_on_convo_v1.txtsimilarity index 100%rename from examples/st_game/prompts/planning_thought_on_convo_v1.txtrename to examples/stanford_town/prompts/planning_thought_on_convo_v1.txtdiff --git a/examples/st_game/prompts/poignancy_action_v1.txt b/examples/stanford_town/prompts/poignancy_action_v1.txtsimilarity index 100%rename from examples/st_game/prompts/poignancy_action_v1.txtrename to examples/stanford_town/prompts/poignancy_action_v1.txtdiff --git a/examples/st_game/prompts/poignancy_chat_v1.txt b/examples/stanford_town/prompts/poignancy_chat_v1.txtsimilarity index 100%rename from examples/st_game/prompts/poignancy_chat_v1.txtrename to examples/stanford_town/prompts/poignancy_chat_v1.txtdiff --git a/examples/st_game/prompts/poignancy_event_v1.txt b/examples/stanford_town/prompts/poignancy_event_v1.txtsimilarity index 100%rename from examples/st_game/prompts/poignancy_event_v1.txtrename to examples/stanford_town/prompts/poignancy_event_v1.txtdiff --git a/examples/st_game/prompts/poignancy_thought_v1.txt b/examples/stanford_town/prompts/poignancy_thought_v1.txtsimilarity index 100%rename from examples/st_game/prompts/poignancy_thought_v1.txtrename to examples/stanford_town/prompts/poignancy_thought_v1.txtdiff --git a/examples/st_game/prompts/summarize_chat_relationship_v2.txt b/examples/stanford_town/prompts/summarize_chat_relationship_v2.txtsimilarity index 100%rename from examples/st_game/prompts/summarize_chat_relationship_v2.txtrename to examples/stanford_town/prompts/summarize_chat_relationship_v2.txtdiff --git a/examples/st_game/prompts/summarize_conversation_v1.txt b/examples/stanford_town/prompts/summarize_conversation_v1.txtsimilarity index 100%rename from examples/st_game/prompts/summarize_conversation_v1.txtrename to examples/stanford_town/prompts/summarize_conversation_v1.txtdiff --git a/examples/st_game/prompts/task_decomp_v3.txt b/examples/stanford_town/prompts/task_decomp_v3.txtsimilarity index 100%rename from examples/st_game/prompts/task_decomp_v3.txtrename to examples/stanford_town/prompts/task_decomp_v3.txtdiff --git a/examples/st_game/prompts/wake_up_hour_v1.txt b/examples/stanford_town/prompts/wake_up_hour_v1.txtsimilarity index 100%rename from examples/st_game/prompts/wake_up_hour_v1.txtrename to examples/stanford_town/prompts/wake_up_hour_v1.txtdiff --git a/examples/st_game/prompts/whisper_inner_thought_v1.txt b/examples/stanford_town/prompts/whisper_inner_thought_v1.txtsimilarity index 100%rename from examples/st_game/prompts/whisper_inner_thought_v1.txtrename to examples/stanford_town/prompts/whisper_inner_thought_v1.txtdiff --git a/examples/st_game/reflect/__init__.py b/examples/stanford_town/reflect/__init__.pysimilarity index 100%rename from examples/st_game/reflect/__init__.pyrename to examples/stanford_town/reflect/__init__.pydiff --git a/examples/st_game/reflect/reflect.py b/examples/stanford_town/reflect/reflect.pysimilarity index 97%rename from examples/st_game/reflect/reflect.pyrename to examples/stanford_town/reflect/reflect.pyindex 0c855b8f1..beec53dc2 100644--- a/examples/st_game/reflect/reflect.py+++ b/examples/stanford_town/reflect/reflect.py@@ -5,7 +5,7 @@import datetimeimport time-from examples.st_game.actions.run_reflect_action import (+from examples.stanford_town.actions.run_reflect_action import (AgentChatPoignancy,AgentEventPoignancy,AgentEventTriple,@@ -14,8 +14,8 @@ from examples.st_game.actions.run_reflect_action import (AgentMemoryOnConvo,AgentPlanThoughtOnConvo,)-from examples.st_game.memory.retrieve import new_agent_retrieve-from examples.st_game.utils.utils import get_embedding+from examples.stanford_town.memory.retrieve import new_agent_retrieve+from examples.stanford_town.utils.utils import get_embeddingfrom metagpt.logs import loggerdiff --git a/examples/st_game/requirements.txt b/examples/stanford_town/requirements.txtsimilarity index 100%rename from examples/st_game/requirements.txtrename to examples/stanford_town/requirements.txtdiff --git a/examples/st_game/roles/__init__.py b/examples/stanford_town/roles/__init__.pysimilarity index 100%rename from examples/st_game/roles/__init__.pyrename to examples/stanford_town/roles/__init__.pydiff --git a/examples/st_game/roles/st_role.py b/examples/stanford_town/roles/st_role.pysimilarity index 96%rename from examples/st_game/roles/st_role.pyrename to examples/stanford_town/roles/st_role.pyindex 48de34f15..414fd40b8 100644--- a/examples/st_game/roles/st_role.py+++ b/examples/stanford_town/roles/st_role.py@@ -20,23 +20,23 @@ from typing import TYPE_CHECKING, Optionalfrom pydantic import ConfigDict, Field, field_validator, model_validator-from examples.st_game.actions.dummy_action import DummyAction, DummyMessage-from examples.st_game.actions.inner_voice_action import AgentWhisperThoughtAction-from examples.st_game.actions.run_reflect_action import AgentEventTriple-from examples.st_game.memory.agent_memory import AgentMemory, BasicMemory-from examples.st_game.memory.scratch import Scratch-from examples.st_game.memory.spatial_memory import MemoryTree-from examples.st_game.plan.st_plan import plan-from examples.st_game.reflect.reflect import generate_poig_score, role_reflect-from examples.st_game.utils.const import STORAGE_PATH, collision_block_id-from examples.st_game.utils.mg_ga_transform import (+from examples.stanford_town.actions.dummy_action import DummyAction, DummyMessage+from examples.stanford_town.actions.inner_voice_action import AgentWhisperThoughtAction+from examples.stanford_town.actions.run_reflect_action import AgentEventTriple+from examples.stanford_town.memory.agent_memory import AgentMemory, BasicMemory+from examples.stanford_town.memory.scratch import Scratch+from examples.stanford_town.memory.spatial_memory import MemoryTree+from examples.stanford_town.plan.st_plan import plan+from examples.stanford_town.reflect.reflect import generate_poig_score, role_reflect+from examples.stanford_town.utils.const import STORAGE_PATH, collision_block_id+from examples.stanford_town.utils.mg_ga_transform import (get_role_environment,save_environment,save_movement,)-from examples.st_game.utils.utils import get_embedding, path_finder+from examples.stanford_town.utils.utils import get_embedding, path_finderfrom metagpt.actions.add_requirement import UserRequirement-from metagpt.environment.stanford_town_env.env_space import (+from metagpt.environment.stanford_town.env_space import (EnvAction,EnvActionType,EnvObsParams,@@ -48,7 +48,7 @@ from metagpt.schema import Messagefrom metagpt.utils.common import any_to_strif TYPE_CHECKING:- from metagpt.environment.stanford_town_env.stanford_town_env import ( # noqa: F401+ from metagpt.environment.stanford_town.stanford_town_env import ( # noqa: F401StanfordTownEnv,)@@ -63,7 +63,7 @@ class STRoleContext(RoleContext):@classmethoddef model_rebuild(cls, **kwargs):- from metagpt.environment.stanford_town_env.stanford_town_env import ( # noqa: F401+ from metagpt.environment.stanford_town.stanford_town_env import ( # noqa: F401StanfordTownEnv,)diff --git a/examples/st_game/run_st_game.py b/examples/stanford_town/run_st_game.pysimilarity index 89%rename from examples/st_game/run_st_game.pyrename to examples/stanford_town/run_st_game.pyindex 304bf24ba..4c3b3bb0e 100644--- a/examples/st_game/run_st_game.py+++ b/examples/stanford_town/run_st_game.py@@ -7,15 +7,15 @@ from typing import Optionalimport fire-from examples.st_game.roles.st_role import STRole-from examples.st_game.stanford_town import StanfordTown-from examples.st_game.utils.const import STORAGE_PATH-from examples.st_game.utils.mg_ga_transform import (+from examples.stanford_town.roles.st_role import STRole+from examples.stanford_town.stanford_town import StanfordTown+from examples.stanford_town.utils.const import STORAGE_PATH+from examples.stanford_town.utils.mg_ga_transform import (get_reverie_meta,write_curr_sim_code,write_curr_step,)-from examples.st_game.utils.utils import copy_folder+from examples.stanford_town.utils.utils import copy_folderfrom metagpt.logs import loggerdiff --git a/examples/st_game/stanford_town.py b/examples/stanford_town/stanford_town.pysimilarity index 87%rename from examples/st_game/stanford_town.pyrename to examples/stanford_town/stanford_town.pyindex f10332b60..7c39cbf04 100644--- a/examples/st_game/stanford_town.py+++ b/examples/stanford_town/stanford_town.py@@ -4,10 +4,10 @@from typing import Any, Optional-from examples.st_game.roles.st_role import STRole-from examples.st_game.utils.const import MAZE_ASSET_PATH+from examples.stanford_town.roles.st_role import STRole+from examples.stanford_town.utils.const import MAZE_ASSET_PATHfrom metagpt.context import Context-from metagpt.environment.stanford_town_env.stanford_town_env import StanfordTownEnv+from metagpt.environment.stanford_town.stanford_town_env import StanfordTownEnvfrom metagpt.logs import loggerfrom metagpt.team import Teamdiff --git a/examples/st_game/static_dirs/assets/the_ville/agent_history_init_n25.csv b/examples/stanford_town/static_dirs/assets/the_ville/agent_history_init_n25.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/agent_history_init_n25.csvrename to examples/stanford_town/static_dirs/assets/the_ville/agent_history_init_n25.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/agent_history_init_n3.csv b/examples/stanford_town/static_dirs/assets/the_ville/agent_history_init_n3.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/agent_history_init_n3.csvrename to examples/stanford_town/static_dirs/assets/the_ville/agent_history_init_n3.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/maze/arena_maze.csv b/examples/stanford_town/static_dirs/assets/the_ville/matrix/maze/arena_maze.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/maze/arena_maze.csvrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/maze/arena_maze.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/maze/collision_maze.csv b/examples/stanford_town/static_dirs/assets/the_ville/matrix/maze/collision_maze.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/maze/collision_maze.csvrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/maze/collision_maze.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/maze/game_object_maze.csv b/examples/stanford_town/static_dirs/assets/the_ville/matrix/maze/game_object_maze.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/maze/game_object_maze.csvrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/maze/game_object_maze.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/maze/sector_maze.csv b/examples/stanford_town/static_dirs/assets/the_ville/matrix/maze/sector_maze.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/maze/sector_maze.csvrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/maze/sector_maze.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/maze/spawning_location_maze.csv b/examples/stanford_town/static_dirs/assets/the_ville/matrix/maze/spawning_location_maze.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/maze/spawning_location_maze.csvrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/maze/spawning_location_maze.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/maze_meta_info.json b/examples/stanford_town/static_dirs/assets/the_ville/matrix/maze_meta_info.jsonsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/maze_meta_info.jsonrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/maze_meta_info.jsondiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/special_blocks/arena_blocks.csv b/examples/stanford_town/static_dirs/assets/the_ville/matrix/special_blocks/arena_blocks.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/special_blocks/arena_blocks.csvrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/special_blocks/arena_blocks.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/special_blocks/game_object_blocks.csv b/examples/stanford_town/static_dirs/assets/the_ville/matrix/special_blocks/game_object_blocks.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/special_blocks/game_object_blocks.csvrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/special_blocks/game_object_blocks.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/special_blocks/sector_blocks.csv b/examples/stanford_town/static_dirs/assets/the_ville/matrix/special_blocks/sector_blocks.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/special_blocks/sector_blocks.csvrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/special_blocks/sector_blocks.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/special_blocks/spawning_location_blocks.csv b/examples/stanford_town/static_dirs/assets/the_ville/matrix/special_blocks/spawning_location_blocks.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/special_blocks/spawning_location_blocks.csvrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/special_blocks/spawning_location_blocks.csvdiff --git a/examples/st_game/static_dirs/assets/the_ville/matrix/special_blocks/world_blocks.csv b/examples/stanford_town/static_dirs/assets/the_ville/matrix/special_blocks/world_blocks.csvsimilarity index 100%rename from examples/st_game/static_dirs/assets/the_ville/matrix/special_blocks/world_blocks.csvrename to examples/stanford_town/static_dirs/assets/the_ville/matrix/special_blocks/world_blocks.csvdiff --git a/examples/st_game/storage/.gitignore b/examples/stanford_town/storage/.gitignoresimilarity index 100%rename from examples/st_game/storage/.gitignorerename to examples/stanford_town/storage/.gitignorediff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/environment/0.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/environment/0.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/environment/0.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/environment/0.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/embeddings.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/embeddings.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/embeddings.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/embeddings.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/kw_strength.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/kw_strength.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/kw_strength.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/kw_strength.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/nodes.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/nodes.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/nodes.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/associative_memory/nodes.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/scratch.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/scratch.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/scratch.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/scratch.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/spatial_memory.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/spatial_memory.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/spatial_memory.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/spatial_memory.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/test_memory/embeddings.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/embeddings.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/test_memory/embeddings.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/embeddings.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/kw_strength.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/kw_strength.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/kw_strength.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/kw_strength.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/test_memory/nodes.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/nodes.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Isabella Rodriguez/bootstrap_memory/test_memory/nodes.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/nodes.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/scratch.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/scratch.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/scratch.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/scratch.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/spatial_memory.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/spatial_memory.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/spatial_memory.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/spatial_memory.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/embeddings.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/embeddings.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/embeddings.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/embeddings.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/kw_strength.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/kw_strength.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/kw_strength.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/kw_strength.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/nodes.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/nodes.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Klaus Mueller/bootstrap_memory/associative_memory/nodes.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/associative_memory/nodes.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/scratch.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/scratch.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/scratch.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/scratch.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/spatial_memory.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/spatial_memory.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/spatial_memory.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/personas/Maria Lopez/bootstrap_memory/spatial_memory.jsondiff --git a/examples/st_game/storage/base_the_ville_isabella_maria_klaus/reverie/meta.json b/examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/reverie/meta.jsonsimilarity index 100%rename from examples/st_game/storage/base_the_ville_isabella_maria_klaus/reverie/meta.jsonrename to examples/stanford_town/storage/base_the_ville_isabella_maria_klaus/reverie/meta.jsondiff --git a/examples/st_game/tests/__init__.py b/examples/stanford_town/tests/__init__.pysimilarity index 100%rename from examples/st_game/tests/__init__.pyrename to examples/stanford_town/tests/__init__.pydiff --git a/examples/st_game/tests/actions/__init__.py b/examples/stanford_town/tests/actions/__init__.pysimilarity index 100%rename from examples/st_game/tests/actions/__init__.pyrename to examples/stanford_town/tests/actions/__init__.pydiff --git a/examples/st_game/tests/actions/test_gen_action_details.py b/examples/stanford_town/tests/actions/test_gen_action_details.pysimilarity index 90%rename from examples/st_game/tests/actions/test_gen_action_details.pyrename to examples/stanford_town/tests/actions/test_gen_action_details.pyindex 49e24481d..bf6b75c04 100644--- a/examples/st_game/tests/actions/test_gen_action_details.py+++ b/examples/stanford_town/tests/actions/test_gen_action_details.py@@ -4,17 +4,17 @@import pytest-from examples.st_game.actions.gen_action_details import (+from examples.stanford_town.actions.gen_action_details import (GenActionArena,GenActionDetails,GenActionObject,GenActionSector,GenActObjDescription,)-from examples.st_game.roles.st_role import STRole-from examples.st_game.utils.const import MAZE_ASSET_PATH+from examples.stanford_town.roles.st_role import STRole+from examples.stanford_town.utils.const import MAZE_ASSET_PATHfrom metagpt.environment.api.env_api import EnvAPIAbstract-from metagpt.environment.stanford_town_env.stanford_town_env import StanfordTownEnv+from metagpt.environment.stanford_town.stanford_town_env import StanfordTownEnv@pytest.mark.asynciodiff --git a/examples/st_game/tests/actions/test_summarize_conv.py b/examples/stanford_town/tests/actions/test_summarize_conv.pysimilarity index 83%rename from examples/st_game/tests/actions/test_summarize_conv.pyrename to examples/stanford_town/tests/actions/test_summarize_conv.pyindex 9174a558a..fa0de2031 100644--- a/examples/st_game/tests/actions/test_summarize_conv.py+++ b/examples/stanford_town/tests/actions/test_summarize_conv.py@@ -4,7 +4,7 @@import pytest-from examples.st_game.actions.summarize_conv import SummarizeConv+from examples.stanford_town.actions.summarize_conv import SummarizeConv@pytest.mark.asynciodiff --git a/examples/st_game/tests/plan/__init__.py b/examples/stanford_town/tests/plan/__init__.pysimilarity index 100%rename from examples/st_game/tests/plan/__init__.pyrename to examples/stanford_town/tests/plan/__init__.pydiff --git a/examples/st_game/tests/plan/test_conversation.py b/examples/stanford_town/tests/plan/test_conversation.pysimilarity index 80%rename from examples/st_game/tests/plan/test_conversation.pyrename to examples/stanford_town/tests/plan/test_conversation.pyindex 3a158fc5f..86c2f0b94 100644--- a/examples/st_game/tests/plan/test_conversation.py+++ b/examples/stanford_town/tests/plan/test_conversation.py@@ -6,12 +6,12 @@ from typing import Tupleimport pytest-from examples.st_game.plan.converse import agent_conversation-from examples.st_game.roles.st_role import STRole-from examples.st_game.utils.const import MAZE_ASSET_PATH, STORAGE_PATH-from examples.st_game.utils.mg_ga_transform import get_reverie_meta-from examples.st_game.utils.utils import copy_folder-from metagpt.environment.stanford_town_env.stanford_town_env import StanfordTownEnv+from examples.stanford_town.plan.converse import agent_conversation+from examples.stanford_town.roles.st_role import STRole+from examples.stanford_town.utils.const import MAZE_ASSET_PATH, STORAGE_PATH+from examples.stanford_town.utils.mg_ga_transform import get_reverie_meta+from examples.stanford_town.utils.utils import copy_folder+from metagpt.environment.stanford_town.stanford_town_env import StanfordTownEnvasync def init_two_roles(fork_sim_code: str = "base_the_ville_isabella_maria_klaus") -> Tuple["STRole"]:diff --git a/examples/st_game/tests/plan/test_st_plan.py b/examples/stanford_town/tests/plan/test_st_plan.pysimilarity index 87%rename from examples/st_game/tests/plan/test_st_plan.pyrename to examples/stanford_town/tests/plan/test_st_plan.pyindex 82e3c56c2..ad20d3068 100644--- a/examples/st_game/tests/plan/test_st_plan.py+++ b/examples/stanford_town/tests/plan/test_st_plan.py@@ -4,8 +4,12 @@import pytest-from examples.st_game.plan.st_plan import _choose_retrieved, _should_react, _wait_react-from examples.st_game.tests.plan.test_converse import init_two_roles+from examples.stanford_town.plan.st_plan import (+ _choose_retrieved,+ _should_react,+ _wait_react,+)+from examples.stanford_town.tests.plan.test_converse import init_two_rolesdef test_should_react():diff --git a/examples/st_game/tests/roles/__init__.py b/examples/stanford_town/tests/roles/__init__.pysimilarity index 100%rename from examples/st_game/tests/roles/__init__.pyrename to examples/stanford_town/tests/roles/__init__.pydiff --git a/examples/st_game/tests/roles/test_st_role.py b/examples/stanford_town/tests/roles/test_st_role.pysimilarity index 67%rename from examples/st_game/tests/roles/test_st_role.pyrename to examples/stanford_town/tests/roles/test_st_role.pyindex c0844d10c..b8feecb2a 100644--- a/examples/st_game/tests/roles/test_st_role.py+++ b/examples/stanford_town/tests/roles/test_st_role.py@@ -4,10 +4,10 @@import pytest-from examples.st_game.memory.agent_memory import BasicMemory-from examples.st_game.roles.st_role import STRole-from examples.st_game.utils.const import MAZE_ASSET_PATH-from metagpt.environment.stanford_town_env.stanford_town_env import StanfordTownEnv+from examples.stanford_town.memory.agent_memory import BasicMemory+from examples.stanford_town.roles.st_role import STRole+from examples.stanford_town.utils.const import MAZE_ASSET_PATH+from metagpt.environment.stanford_town.stanford_town_env import StanfordTownEnv@pytest.mark.asynciodiff --git a/examples/st_game/tests/test_agent_memory.py b/examples/stanford_town/tests/test_agent_memory.pysimilarity index 94%rename from examples/st_game/tests/test_agent_memory.pyrename to examples/stanford_town/tests/test_agent_memory.pyindex d5a75163c..e7ad3fc43 100644--- a/examples/st_game/tests/test_agent_memory.py+++ b/examples/stanford_town/tests/test_agent_memory.py@@ -6,9 +6,9 @@ from datetime import datetime, timedeltaimport pytest-from examples.st_game.memory.agent_memory import AgentMemory-from examples.st_game.memory.retrieve import agent_retrieve-from examples.st_game.utils.const import STORAGE_PATH+from examples.stanford_town.memory.agent_memory import AgentMemory+from examples.stanford_town.memory.retrieve import agent_retrieve+from examples.stanford_town.utils.const import STORAGE_PATHfrom metagpt.logs import logger"""diff --git a/examples/st_game/tests/test_basic_memory.py b/examples/stanford_town/tests/test_basic_memory.pysimilarity index 96%rename from examples/st_game/tests/test_basic_memory.pyrename to examples/stanford_town/tests/test_basic_memory.pyindex 25d350263..fa2a5c487 100644--- a/examples/st_game/tests/test_basic_memory.py+++ b/examples/stanford_town/tests/test_basic_memory.py@@ -6,7 +6,7 @@ from datetime import datetime, timedeltaimport pytest-from examples.st_game.memory.agent_memory import BasicMemory+from examples.stanford_town.memory.agent_memory import BasicMemoryfrom metagpt.logs import logger"""diff --git a/examples/st_game/tests/test_reflect.py b/examples/stanford_town/tests/test_reflect.pysimilarity index 93%rename from examples/st_game/tests/test_reflect.pyrename to examples/stanford_town/tests/test_reflect.pyindex 6672b0545..48422d073 100644--- a/examples/st_game/tests/test_reflect.py+++ b/examples/stanford_town/tests/test_reflect.py@@ -4,14 +4,14 @@import pytest-from examples.st_game.actions.run_reflect_action import (+from examples.stanford_town.actions.run_reflect_action import (AgentEventTriple,AgentFocusPt,AgentInsightAndGuidance,)-from examples.st_game.roles.st_role import STRole-from examples.st_game.utils.const import MAZE_ASSET_PATH-from metagpt.environment.stanford_town_env.stanford_town_env import StanfordTownEnv+from examples.stanford_town.roles.st_role import STRole+from examples.stanford_town.utils.const import MAZE_ASSET_PATH+from metagpt.environment.stanford_town.stanford_town_env import StanfordTownEnv@pytest.mark.asynciodiff --git a/examples/st_game/tests/test_spatial_memory.py b/examples/stanford_town/tests/test_spatial_memory.pysimilarity index 100%rename from examples/st_game/tests/test_spatial_memory.pyrename to examples/stanford_town/tests/test_spatial_memory.pydiff --git a/examples/st_game/utils/__init__.py b/examples/stanford_town/utils/__init__.pysimilarity index 100%rename from examples/st_game/utils/__init__.pyrename to examples/stanford_town/utils/__init__.pydiff --git a/examples/st_game/utils/const.py b/examples/stanford_town/utils/const.pysimilarity index 100%rename from examples/st_game/utils/const.pyrename to examples/stanford_town/utils/const.pydiff --git a/examples/st_game/utils/mg_ga_transform.py b/examples/stanford_town/utils/mg_ga_transform.pysimilarity index 96%rename from examples/st_game/utils/mg_ga_transform.pyrename to examples/stanford_town/utils/mg_ga_transform.pyindex 9ff57a3b1..521199a05 100644--- a/examples/st_game/utils/mg_ga_transform.py+++ b/examples/stanford_town/utils/mg_ga_transform.py@@ -5,7 +5,7 @@from pathlib import Pathfrom typing import Optional-from examples.st_game.utils.const import STORAGE_PATH, TEMP_STORAGE_PATH+from examples.stanford_town.utils.const import STORAGE_PATH, TEMP_STORAGE_PATHfrom metagpt.logs import loggerfrom metagpt.utils.common import read_json_file, write_json_filediff --git a/examples/st_game/utils/utils.py b/examples/stanford_town/utils/utils.pysimilarity index 100%rename from examples/st_game/utils/utils.pyrename to examples/stanford_town/utils/utils.pydiff --git a/metagpt/environment/__init__.py b/metagpt/environment/__init__.pyindex 28981f2f8..0621fff16 100644--- a/metagpt/environment/__init__.py+++ b/metagpt/environment/__init__.py@@ -3,10 +3,10 @@# @Desc :from metagpt.environment.base_env import Environment-from metagpt.environment.android_env.android_env import AndroidEnv-from metagpt.environment.werewolf_env.werewolf_env import WerewolfEnv-from metagpt.environment.stanford_town_env.stanford_town_env import StanfordTownEnv-from metagpt.environment.software_env.software_env import SoftwareEnv+from metagpt.environment.android.android_env import AndroidEnv+from metagpt.environment.werewolf.werewolf_env import WerewolfEnv+from metagpt.environment.stanford_town.stanford_town_env import StanfordTownEnv+from metagpt.environment.software.software_env import SoftwareEnv__all__ = ["AndroidEnv", "WerewolfEnv", "StanfordTownEnv", "SoftwareEnv", "Environment"]diff --git a/metagpt/environment/android_env/__init__.py b/metagpt/environment/android/__init__.pysimilarity index 100%rename from metagpt/environment/android_env/__init__.pyrename to metagpt/environment/android/__init__.pydiff --git a/metagpt/environment/android_env/android_env.py b/metagpt/environment/android/android_env.pysimilarity index 83%rename from metagpt/environment/android_env/android_env.pyrename to metagpt/environment/android/android_env.pyindex c27e20541..b3227df0f 100644--- a/metagpt/environment/android_env/android_env.py+++ b/metagpt/environment/android/android_env.py@@ -4,7 +4,7 @@from pydantic import Field-from metagpt.environment.android_env.android_ext_env import AndroidExtEnv+from metagpt.environment.android.android_ext_env import AndroidExtEnvfrom metagpt.environment.base_env import Environmentdiff --git a/metagpt/environment/android_env/android_ext_env.py b/metagpt/environment/android/android_ext_env.pysimilarity index 99%rename from metagpt/environment/android_env/android_ext_env.pyrename to metagpt/environment/android/android_ext_env.pyindex 01a24c5b9..d2344fa1f 100644--- a/metagpt/environment/android_env/android_ext_env.py+++ b/metagpt/environment/android/android_ext_env.py@@ -8,7 +8,7 @@ from typing import Any, Optionalfrom pydantic import Field-from metagpt.environment.android_env.const import ADB_EXEC_FAIL+from metagpt.environment.android.const import ADB_EXEC_FAILfrom metagpt.environment.base_env import ExtEnv, mark_as_readable, mark_as_writeablefrom metagpt.environment.base_env_space import BaseEnvAction, BaseEnvObsParamsdiff --git a/metagpt/environment/android_env/const.py b/metagpt/environment/android/const.pysimilarity index 100%rename from metagpt/environment/android_env/const.pyrename to metagpt/environment/android/const.pydiff --git a/metagpt/environment/minecraft_env/__init__.py b/metagpt/environment/minecraft/__init__.pysimilarity index 100%rename from metagpt/environment/minecraft_env/__init__.pyrename to metagpt/environment/minecraft/__init__.pydiff --git a/metagpt/environment/minecraft_env/const.py b/metagpt/environment/minecraft/const.pysimilarity index 100%rename from metagpt/environment/minecraft_env/const.pyrename to metagpt/environment/minecraft/const.pydiff --git a/metagpt/environment/minecraft_env/minecraft_env.py b/metagpt/environment/minecraft/minecraft_env.pysimilarity index 99%rename from metagpt/environment/minecraft_env/minecraft_env.pyrename to metagpt/environment/minecraft/minecraft_env.pyindex bba35ce21..edc4aca5b 100644--- a/metagpt/environment/minecraft_env/minecraft_env.py+++ b/metagpt/environment/minecraft/minecraft_env.py@@ -12,8 +12,8 @@ from pydantic import ConfigDict, Fieldfrom metagpt.config2 import config as CONFIGfrom metagpt.environment.base_env import Environment-from metagpt.environment.minecraft_env.const import MC_CKPT_DIR-from metagpt.environment.minecraft_env.minecraft_ext_env import MinecraftExtEnv+from metagpt.environment.minecraft.const import MC_CKPT_DIR+from metagpt.environment.minecraft.minecraft_ext_env import MinecraftExtEnvfrom metagpt.logs import loggerfrom metagpt.rag.vector_stores.chroma import ChromaVectorStorefrom metagpt.utils.common import load_mc_skills_code, read_json_file, write_json_filediff --git a/metagpt/environment/minecraft_env/minecraft_ext_env.py b/metagpt/environment/minecraft/minecraft_ext_env.pysimilarity index 97%rename from metagpt/environment/minecraft_env/minecraft_ext_env.pyrename to metagpt/environment/minecraft/minecraft_ext_env.pyindex 74f417eb0..0436bc3aa 100644--- a/metagpt/environment/minecraft_env/minecraft_ext_env.py+++ b/metagpt/environment/minecraft/minecraft_ext_env.py@@ -12,14 +12,14 @@ from pydantic import ConfigDict, Field, model_validatorfrom metagpt.environment.base_env import ExtEnv, mark_as_writeablefrom metagpt.environment.base_env_space import BaseEnvAction, BaseEnvObsParams-from metagpt.environment.minecraft_env.const import (+from metagpt.environment.minecraft.const import (MC_CKPT_DIR,MC_CORE_INVENTORY_ITEMS,MC_CURRICULUM_OB,MC_DEFAULT_WARMUP,METAGPT_ROOT,)-from metagpt.environment.minecraft_env.process_monitor import SubprocessMonitor+from metagpt.environment.minecraft.process_monitor import SubprocessMonitorfrom metagpt.logs import logger@@ -63,7 +63,7 @@ class MinecraftExtEnv(ExtEnv):self.mineflayer = SubprocessMonitor(commands=["node",- METAGPT_ROOT.joinpath("metagpt", "environment", "minecraft_env", "mineflayer", "index.js"),+ METAGPT_ROOT.joinpath("metagpt", "environment", "minecraft", "mineflayer", "index.js"),str(self.server_port),],name="mineflayer",diff --git a/metagpt/environment/minecraft_env/mineflayer/.gitignore b/metagpt/environment/minecraft/mineflayer/.gitignoresimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/.gitignorerename to metagpt/environment/minecraft/mineflayer/.gitignorediff --git a/metagpt/environment/minecraft_env/mineflayer/.prettierignore b/metagpt/environment/minecraft/mineflayer/.prettierignoresimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/.prettierignorerename to metagpt/environment/minecraft/mineflayer/.prettierignorediff --git a/metagpt/environment/minecraft_env/mineflayer/.prettierrc.json b/metagpt/environment/minecraft/mineflayer/.prettierrc.jsonsimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/.prettierrc.jsonrename to metagpt/environment/minecraft/mineflayer/.prettierrc.jsondiff --git a/metagpt/environment/minecraft_env/mineflayer/index.js b/metagpt/environment/minecraft/mineflayer/index.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/index.jsrename to metagpt/environment/minecraft/mineflayer/index.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/lib/observation/base.js b/metagpt/environment/minecraft/mineflayer/lib/observation/base.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/lib/observation/base.jsrename to metagpt/environment/minecraft/mineflayer/lib/observation/base.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/lib/observation/chests.js b/metagpt/environment/minecraft/mineflayer/lib/observation/chests.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/lib/observation/chests.jsrename to metagpt/environment/minecraft/mineflayer/lib/observation/chests.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/lib/observation/inventory.js b/metagpt/environment/minecraft/mineflayer/lib/observation/inventory.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/lib/observation/inventory.jsrename to metagpt/environment/minecraft/mineflayer/lib/observation/inventory.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/lib/observation/onChat.js b/metagpt/environment/minecraft/mineflayer/lib/observation/onChat.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/lib/observation/onChat.jsrename to metagpt/environment/minecraft/mineflayer/lib/observation/onChat.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/lib/observation/onError.js b/metagpt/environment/minecraft/mineflayer/lib/observation/onError.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/lib/observation/onError.jsrename to metagpt/environment/minecraft/mineflayer/lib/observation/onError.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/lib/observation/onSave.js b/metagpt/environment/minecraft/mineflayer/lib/observation/onSave.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/lib/observation/onSave.jsrename to metagpt/environment/minecraft/mineflayer/lib/observation/onSave.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/lib/observation/status.js b/metagpt/environment/minecraft/mineflayer/lib/observation/status.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/lib/observation/status.jsrename to metagpt/environment/minecraft/mineflayer/lib/observation/status.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/lib/observation/voxels.js b/metagpt/environment/minecraft/mineflayer/lib/observation/voxels.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/lib/observation/voxels.jsrename to metagpt/environment/minecraft/mineflayer/lib/observation/voxels.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/lib/skillLoader.js b/metagpt/environment/minecraft/mineflayer/lib/skillLoader.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/lib/skillLoader.jsrename to metagpt/environment/minecraft/mineflayer/lib/skillLoader.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/lib/utils.js b/metagpt/environment/minecraft/mineflayer/lib/utils.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/lib/utils.jsrename to metagpt/environment/minecraft/mineflayer/lib/utils.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/.gitignore b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/.gitignoresimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/.gitignorerename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/.gitignorediff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/LICENSE b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/LICENSEsimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/LICENSErename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/LICENSEdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/README.md b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/README.mdsimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/README.mdrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/README.mddiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/_config.yml b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/_config.ymlsimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/_config.ymlrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/_config.ymldiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/docs/api.md b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/docs/api.mdsimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/docs/api.mdrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/docs/api.mddiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/examples/collector.js b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/examples/collector.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/examples/collector.jsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/examples/collector.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/examples/oreMiner.js b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/examples/oreMiner.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/examples/oreMiner.jsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/examples/oreMiner.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/examples/storageBot.js b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/examples/storageBot.jssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/examples/storageBot.jsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/examples/storageBot.jsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/package.json b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/package.jsonsimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/package.jsonrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/package.jsondiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/BlockVeins.ts b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/BlockVeins.tssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/BlockVeins.tsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/BlockVeins.tsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/CollectBlock.ts b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/CollectBlock.tssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/CollectBlock.tsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/CollectBlock.tsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/Inventory.ts b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/Inventory.tssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/Inventory.tsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/Inventory.tsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/Targets.ts b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/Targets.tssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/Targets.tsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/Targets.tsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/TaskQueue.ts b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/TaskQueue.tssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/TaskQueue.tsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/TaskQueue.tsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/TemporarySubscriber.ts b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/TemporarySubscriber.tssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/TemporarySubscriber.tsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/TemporarySubscriber.tsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/Util.ts b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/Util.tssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/Util.tsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/Util.tsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/index.ts b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/index.tssimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/src/index.tsrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/src/index.tsdiff --git a/metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/tsconfig.json b/metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/tsconfig.jsonsimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/mineflayer-collectblock/tsconfig.jsonrename to metagpt/environment/minecraft/mineflayer/mineflayer-collectblock/tsconfig.jsondiff --git a/metagpt/environment/minecraft_env/mineflayer/package.json b/metagpt/environment/minecraft/mineflayer/package.jsonsimilarity index 100%rename from metagpt/environment/minecraft_env/mineflayer/package.jsonrename to metagpt/environment/minecraft/mineflayer/package.jsondiff --git a/metagpt/environment/minecraft_env/process_monitor.py b/metagpt/environment/minecraft/process_monitor.pysimilarity index 100%rename from metagpt/environment/minecraft_env/process_monitor.pyrename to metagpt/environment/minecraft/process_monitor.pydiff --git a/metagpt/environment/software_env/__init__.py b/metagpt/environment/software/__init__.pysimilarity index 100%rename from metagpt/environment/software_env/__init__.pyrename to metagpt/environment/software/__init__.pydiff --git a/metagpt/environment/software_env/software_env.py b/metagpt/environment/software/software_env.pysimilarity index 100%rename from metagpt/environment/software_env/software_env.pyrename to metagpt/environment/software/software_env.pydiff --git a/metagpt/environment/stanford_town_env/__init__.py b/metagpt/environment/stanford_town/__init__.pysimilarity index 100%rename from metagpt/environment/stanford_town_env/__init__.pyrename to metagpt/environment/stanford_town/__init__.pydiff --git a/metagpt/environment/stanford_town_env/env_space.py b/metagpt/environment/stanford_town/env_space.pysimilarity index 100%rename from metagpt/environment/stanford_town_env/env_space.pyrename to metagpt/environment/stanford_town/env_space.pydiff --git a/metagpt/environment/stanford_town_env/stanford_town_env.py b/metagpt/environment/stanford_town/stanford_town_env.pysimilarity index 66%rename from metagpt/environment/stanford_town_env/stanford_town_env.pyrename to metagpt/environment/stanford_town/stanford_town_env.pyindex 8721d6cd1..2b6212781 100644--- a/metagpt/environment/stanford_town_env/stanford_town_env.py+++ b/metagpt/environment/stanford_town/stanford_town_env.py@@ -3,9 +3,7 @@# @Desc : MG StanfordTown Envfrom metagpt.environment.base_env import Environment-from metagpt.environment.stanford_town_env.stanford_town_ext_env import (- StanfordTownExtEnv,-)+from metagpt.environment.stanford_town.stanford_town_ext_env import StanfordTownExtEnvclass StanfordTownEnv(Environment, StanfordTownExtEnv):diff --git a/metagpt/environment/stanford_town_env/stanford_town_ext_env.py b/metagpt/environment/stanford_town/stanford_town_ext_env.pysimilarity index 99%rename from metagpt/environment/stanford_town_env/stanford_town_ext_env.pyrename to metagpt/environment/stanford_town/stanford_town_ext_env.pyindex b41ae375c..30a02d4db 100644--- a/metagpt/environment/stanford_town_env/stanford_town_ext_env.py+++ b/metagpt/environment/stanford_town/stanford_town_ext_env.py@@ -10,7 +10,7 @@ from typing import Any, Optionalfrom pydantic import ConfigDict, Field, model_validatorfrom metagpt.environment.base_env import ExtEnv, mark_as_readable, mark_as_writeable-from metagpt.environment.stanford_town_env.env_space import (+from metagpt.environment.stanford_town.env_space import (EnvAction,EnvActionType,EnvObsParams,diff --git a/metagpt/environment/werewolf_env/__init__.py b/metagpt/environment/werewolf/__init__.pysimilarity index 100%rename from metagpt/environment/werewolf_env/__init__.pyrename to metagpt/environment/werewolf/__init__.pydiff --git a/metagpt/environment/werewolf_env/werewolf_env.py b/metagpt/environment/werewolf/werewolf_env.pysimilarity index 93%rename from metagpt/environment/werewolf_env/werewolf_env.pyrename to metagpt/environment/werewolf/werewolf_env.pyindex d174f322c..e22d9c46f 100644--- a/metagpt/environment/werewolf_env/werewolf_env.py+++ b/metagpt/environment/werewolf/werewolf_env.py@@ -5,7 +5,7 @@from pydantic import Fieldfrom metagpt.environment.base_env import Environment-from metagpt.environment.werewolf_env.werewolf_ext_env import WerewolfExtEnv+from metagpt.environment.werewolf.werewolf_ext_env import WerewolfExtEnvfrom metagpt.logs import loggerfrom metagpt.schema import Messagediff --git a/metagpt/environment/werewolf_env/werewolf_ext_env.py b/metagpt/environment/werewolf/werewolf_ext_env.pysimilarity index 100%rename from metagpt/environment/werewolf_env/werewolf_ext_env.pyrename to metagpt/environment/werewolf/werewolf_ext_env.pydiff --git a/tests/metagpt/environment/android_env/test_android_ext_env.py b/tests/metagpt/environment/android_env/test_android_ext_env.pyindex c9dfc718b..3fb77ab24 100644--- a/tests/metagpt/environment/android_env/test_android_ext_env.py+++ b/tests/metagpt/environment/android_env/test_android_ext_env.py@@ -4,8 +4,8 @@from pathlib import Path-from metagpt.environment.android_env.android_ext_env import AndroidExtEnv-from metagpt.environment.android_env.const import ADB_EXEC_FAIL+from metagpt.environment.android.android_ext_env import AndroidExtEnv+from metagpt.environment.android.const import ADB_EXEC_FAILdef mock_device_shape(self, adb_cmd: str) -> str:@@ -34,9 +34,7 @@ def mock_write_read_operation(self, adb_cmd: str) -> str:def test_android_ext_env(mocker):device_id = "emulator-5554"- mocker.patch(- "metagpt.environment.android_env.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_device_shape- )+ mocker.patch("metagpt.environment.android.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_device_shape)ext_env = AndroidExtEnv(device_id=device_id, screenshot_dir="/data2/", xml_dir="/data2/")assert ext_env.adb_prefix == f"adb -s {device_id} "@@ -46,25 +44,21 @@ def test_android_ext_env(mocker):assert ext_env.device_shape == (720, 1080)mocker.patch(- "metagpt.environment.android_env.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_device_shape_invalid+ "metagpt.environment.android.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_device_shape_invalid)assert ext_env.device_shape == (0, 0)- mocker.patch(- "metagpt.environment.android_env.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_list_devices- )+ mocker.patch("metagpt.environment.android.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_list_devices)assert ext_env.list_devices() == [device_id]- mocker.patch(- "metagpt.environment.android_env.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_get_screenshot- )+ mocker.patch("metagpt.environment.android.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_get_screenshot)assert ext_env.get_screenshot("screenshot_xxxx-xx-xx", "/data/") == Path("/data/screenshot_xxxx-xx-xx.png")- mocker.patch("metagpt.environment.android_env.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_get_xml)+ mocker.patch("metagpt.environment.android.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_get_xml)assert ext_env.get_xml("xml_xxxx-xx-xx", "/data/") == Path("/data/xml_xxxx-xx-xx.xml")mocker.patch(- "metagpt.environment.android_env.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_write_read_operation+ "metagpt.environment.android.android_ext_env.AndroidExtEnv.execute_adb_with_cmd", mock_write_read_operation)res = "OK"assert ext_env.system_back() == resdiff --git a/tests/metagpt/environment/minecraft_env/test_minecraft_ext_env.py b/tests/metagpt/environment/minecraft_env/test_minecraft_ext_env.pyindex ed08b719f..0ebff22eb 100644--- a/tests/metagpt/environment/minecraft_env/test_minecraft_ext_env.py+++ b/tests/metagpt/environment/minecraft_env/test_minecraft_ext_env.py@@ -3,8 +3,8 @@# @Desc : the unittest of MinecraftExtEnv-from metagpt.environment.minecraft_env.const import MC_CKPT_DIR-from metagpt.environment.minecraft_env.minecraft_ext_env import MinecraftExtEnv+from metagpt.environment.minecraft.const import MC_CKPT_DIR+from metagpt.environment.minecraft.minecraft_ext_env import MinecraftExtEnvdef test_minecraft_ext_env():diff --git a/tests/metagpt/environment/stanford_town_env/test_stanford_town_ext_env.py b/tests/metagpt/environment/stanford_town_env/test_stanford_town_ext_env.pyindex 63e88cf32..81c811d67 100644--- a/tests/metagpt/environment/stanford_town_env/test_stanford_town_ext_env.py+++ b/tests/metagpt/environment/stanford_town_env/test_stanford_town_ext_env.py@@ -4,18 +4,18 @@from pathlib import Path-from metagpt.environment.stanford_town_env.env_space import (+from metagpt.environment.stanford_town.env_space import (EnvAction,EnvActionType,EnvObsParams,EnvObsType,)-from metagpt.environment.stanford_town_env.stanford_town_ext_env import (- StanfordTownExtEnv,-)+from metagpt.environment.stanford_town.stanford_town_ext_env import StanfordTownExtEnvmaze_asset_path = (- Path(__file__).absolute().parent.joinpath("..", "..", "..", "..", "examples/st_game/static_dirs/assets/the_ville")+ Path(__file__)+ .absolute()+ .parent.joinpath("..", "..", "..", "..", "examples/stanford_town/static_dirs/assets/the_ville"))diff --git a/tests/metagpt/environment/werewolf_env/test_werewolf_ext_env.py b/tests/metagpt/environment/werewolf_env/test_werewolf_ext_env.pyindex 0694c5c3d..433f59f2c 100644--- a/tests/metagpt/environment/werewolf_env/test_werewolf_ext_env.py+++ b/tests/metagpt/environment/werewolf_env/test_werewolf_ext_env.py@@ -2,7 +2,7 @@# -*- coding: utf-8 -*-# @Desc : the unittest of WerewolfExtEnv-from metagpt.environment.werewolf_env.werewolf_ext_env import RoleState, WerewolfExtEnv+from metagpt.environment.werewolf.werewolf_ext_env import RoleState, WerewolfExtEnvfrom metagpt.roles.role import Role