Skip to content

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

remove environment const into individual const.py

better62952a94470db13
diff --git a/metagpt/const.py b/metagpt/const.py
index 41a98356c..a1c650ce3 100644
--- a/metagpt/const.py
+++ b/metagpt/const.py
@@ -129,45 +129,3 @@ IGNORED_MESSAGE_ID = "0"
GENERALIZATION = "Generalize"
COMPOSITION = "Composite"
AGGREGATION = "Aggregate"
-
-# For Android Assistant Agent
-ADB_EXEC_FAIL = "FAILED"
-
-# For Mincraft Game Agent
-MC_CKPT_DIR = METAGPT_ROOT / "data/mincraft/ckpt"
-MC_LOG_DIR = METAGPT_ROOT / "logs"
-MC_DEFAULT_WARMUP = {
- "context": 15,
- "biome": 10,
- "time": 15,
- "nearby_blocks": 0,
- "other_blocks": 10,
- "nearby_entities": 5,
- "health": 15,
- "hunger": 15,
- "position": 0,
- "equipment": 0,
- "inventory": 0,
- "optional_inventory_items": 7,
- "chests": 0,
- "completed_tasks": 0,
- "failed_tasks": 0,
-}
-MC_CURRICULUM_OB = [
- "context",
- "biome",
- "time",
- "nearby_blocks",
- "other_blocks",
- "nearby_entities",
- "health",
- "hunger",
- "position",
- "equipment",
- "inventory",
- "chests",
- "completed_tasks",
- "failed_tasks",
-]
-MC_CORE_INVENTORY_ITEMS = r".*_log|.*_planks|stick|crafting_table|furnace"
-r"|cobblestone|dirt|coal|.*_pickaxe|.*_sword|.*_axe", # curriculum_agent: only show these items in inventory before optional_inventory_items reached in warm up
diff --git a/metagpt/environment/android_env/const.py b/metagpt/environment/android_env/const.py
new file mode 100644
index 000000000..8811289bf
--- /dev/null
+++ b/metagpt/environment/android_env/const.py
@@ -0,0 +1,6 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# @Desc :
+
+# For Android Assistant Agent
+ADB_EXEC_FAIL = "FAILED"
diff --git a/metagpt/environment/mincraft_env/const.py b/metagpt/environment/mincraft_env/const.py
new file mode 100644
index 000000000..a7222f9cd
--- /dev/null
+++ b/metagpt/environment/mincraft_env/const.py
@@ -0,0 +1,44 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# @Desc :
+
+from metagpt.const import METAGPT_ROOT
+
+# For Mincraft Game Agent
+MC_CKPT_DIR = METAGPT_ROOT / "data/mincraft/ckpt"
+MC_LOG_DIR = METAGPT_ROOT / "logs"
+MC_DEFAULT_WARMUP = {
+ "context": 15,
+ "biome": 10,
+ "time": 15,
+ "nearby_blocks": 0,
+ "other_blocks": 10,
+ "nearby_entities": 5,
+ "health": 15,
+ "hunger": 15,
+ "position": 0,
+ "equipment": 0,
+ "inventory": 0,
+ "optional_inventory_items": 7,
+ "chests": 0,
+ "completed_tasks": 0,
+ "failed_tasks": 0,
+}
+MC_CURRICULUM_OB = [
+ "context",
+ "biome",
+ "time",
+ "nearby_blocks",
+ "other_blocks",
+ "nearby_entities",
+ "health",
+ "hunger",
+ "position",
+ "equipment",
+ "inventory",
+ "chests",
+ "completed_tasks",
+ "failed_tasks",
+]
+MC_CORE_INVENTORY_ITEMS = r".*_log|.*_planks|stick|crafting_table|furnace"
+r"|cobblestone|dirt|coal|.*_pickaxe|.*_sword|.*_axe", # curriculum_agent: only show these items in inventory before optional_inventory_items reached in warm up