Skip to content

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

fix typo

better6290a11b4af4b81
diff --git a/examples/andriod_assistant/README.md b/examples/android_assistant/README.md
similarity index 100%
rename from examples/andriod_assistant/README.md
rename to examples/android_assistant/README.md
diff --git a/examples/andriod_assistant/actions/__init__.py b/examples/android_assistant/actions/__init__.py
similarity index 100%
rename from examples/andriod_assistant/actions/__init__.py
rename to examples/android_assistant/actions/__init__.py
diff --git a/examples/andriod_assistant/actions/manual_record.py b/examples/android_assistant/actions/manual_record.py
similarity index 97%
rename from examples/andriod_assistant/actions/manual_record.py
rename to examples/android_assistant/actions/manual_record.py
index 007ac36ba..003b207b0 100644
--- a/examples/andriod_assistant/actions/manual_record.py
+++ b/examples/android_assistant/actions/manual_record.py
@@ -6,14 +6,14 @@ from pathlib import Path
import cv2
-from examples.andriod_assistant.utils.const import ADB_EXEC_FAIL
-from examples.andriod_assistant.utils.schema import (
+from examples.android_assistant.utils.const import ADB_EXEC_FAIL
+from examples.android_assistant.utils.schema import (
ActionOp,
AndroidActionOutput,
RunState,
SwipeOp,
)
-from examples.andriod_assistant.utils.utils import (
+from examples.android_assistant.utils.utils import (
draw_bbox_multi,
elem_list_from_xml_tree,
)
diff --git a/examples/andriod_assistant/actions/parse_record.py b/examples/android_assistant/actions/parse_record.py
similarity index 97%
rename from examples/andriod_assistant/actions/parse_record.py
rename to examples/android_assistant/actions/parse_record.py
index 1685ea172..f9c6054bb 100644
--- a/examples/andriod_assistant/actions/parse_record.py
+++ b/examples/android_assistant/actions/parse_record.py
@@ -7,15 +7,15 @@ import ast
import re
from pathlib import Path
-from examples.andriod_assistant.actions.parse_record_an import RECORD_PARSE_NODE
-from examples.andriod_assistant.prompts.operation_prompt import (
+from examples.android_assistant.actions.parse_record_an import RECORD_PARSE_NODE
+from examples.android_assistant.prompts.operation_prompt import (
long_press_doc_template,
refine_doc_suffix,
swipe_doc_template,
tap_doc_template,
text_doc_template,
)
-from examples.andriod_assistant.utils.schema import (
+from examples.android_assistant.utils.schema import (
ActionOp,
AndroidActionOutput,
RecordLogItem,
diff --git a/examples/andriod_assistant/actions/parse_record_an.py b/examples/android_assistant/actions/parse_record_an.py
similarity index 100%
rename from examples/andriod_assistant/actions/parse_record_an.py
rename to examples/android_assistant/actions/parse_record_an.py
diff --git a/examples/andriod_assistant/actions/screenshot_parse.py b/examples/android_assistant/actions/screenshot_parse.py
similarity index 96%
rename from examples/andriod_assistant/actions/screenshot_parse.py
rename to examples/android_assistant/actions/screenshot_parse.py
index b3c542fd3..3bb65d5ef 100644
--- a/examples/andriod_assistant/actions/screenshot_parse.py
+++ b/examples/android_assistant/actions/screenshot_parse.py
@@ -5,13 +5,13 @@
import ast
from pathlib import Path
-from examples.andriod_assistant.actions.screenshot_parse_an import SCREENSHOT_PARSE_NODE
-from examples.andriod_assistant.prompts.assistant_prompt import (
+from examples.android_assistant.actions.screenshot_parse_an import SCREENSHOT_PARSE_NODE
+from examples.android_assistant.prompts.assistant_prompt import (
screenshot_parse_template,
screenshot_parse_with_grid_template,
)
-from examples.andriod_assistant.utils.const import ADB_EXEC_FAIL
-from examples.andriod_assistant.utils.schema import (
+from examples.android_assistant.utils.const import ADB_EXEC_FAIL
+from examples.android_assistant.utils.schema import (
AndroidActionOutput,
AndroidElement,
GridOp,
@@ -25,7 +25,7 @@ from examples.andriod_assistant.utils.schema import (
TapOp,
TextOp,
)
-from examples.andriod_assistant.utils.utils import (
+from examples.android_assistant.utils.utils import (
area_to_xy,
draw_bbox_multi,
draw_grid,
diff --git a/examples/andriod_assistant/actions/screenshot_parse_an.py b/examples/android_assistant/actions/screenshot_parse_an.py
similarity index 100%
rename from examples/andriod_assistant/actions/screenshot_parse_an.py
rename to examples/android_assistant/actions/screenshot_parse_an.py
diff --git a/examples/andriod_assistant/actions/self_learn_and_reflect.py b/examples/android_assistant/actions/self_learn_and_reflect.py
similarity index 95%
rename from examples/andriod_assistant/actions/self_learn_and_reflect.py
rename to examples/android_assistant/actions/self_learn_and_reflect.py
index e935fc1e6..38e05cd80 100644
--- a/examples/andriod_assistant/actions/self_learn_and_reflect.py
+++ b/examples/android_assistant/actions/self_learn_and_reflect.py
@@ -5,18 +5,18 @@
import ast
from pathlib import Path
-from examples.andriod_assistant.actions.screenshot_parse_an import SCREENSHOT_PARSE_NODE
-from examples.andriod_assistant.actions.self_learn_reflect_an import (
+from examples.android_assistant.actions.screenshot_parse_an import SCREENSHOT_PARSE_NODE
+from examples.android_assistant.actions.self_learn_reflect_an import (
SELF_LEARN_REFLECT_NODE,
)
-from examples.andriod_assistant.prompts.assistant_prompt import (
+from examples.android_assistant.prompts.assistant_prompt import (
screenshot_parse_self_explore_reflect_template as reflect_template,
)
-from examples.andriod_assistant.prompts.assistant_prompt import (
+from examples.android_assistant.prompts.assistant_prompt import (
screenshot_parse_self_explore_template,
)
-from examples.andriod_assistant.utils.const import ADB_EXEC_FAIL
-from examples.andriod_assistant.utils.schema import (
+from examples.android_assistant.utils.const import ADB_EXEC_FAIL
+from examples.android_assistant.utils.schema import (
ActionOp,
AndroidActionOutput,
AndroidElement,
@@ -31,7 +31,7 @@ from examples.andriod_assistant.utils.schema import (
TapOp,
TextOp,
)
-from examples.andriod_assistant.utils.utils import (
+from examples.android_assistant.utils.utils import (
draw_bbox_multi,
elem_bbox_to_xy,
elem_list_from_xml_tree,
diff --git a/examples/andriod_assistant/actions/self_learn_reflect_an.py b/examples/android_assistant/actions/self_learn_reflect_an.py
similarity index 100%
rename from examples/andriod_assistant/actions/self_learn_reflect_an.py
rename to examples/android_assistant/actions/self_learn_reflect_an.py
diff --git a/examples/andriod_assistant/prompts/__init__.py b/examples/android_assistant/prompts/__init__.py
similarity index 100%
rename from examples/andriod_assistant/prompts/__init__.py
rename to examples/android_assistant/prompts/__init__.py
diff --git a/examples/andriod_assistant/prompts/assistant_prompt.py b/examples/android_assistant/prompts/assistant_prompt.py
similarity index 100%
rename from examples/andriod_assistant/prompts/assistant_prompt.py
rename to examples/android_assistant/prompts/assistant_prompt.py
diff --git a/examples/andriod_assistant/prompts/operation_prompt.py b/examples/android_assistant/prompts/operation_prompt.py
similarity index 100%
rename from examples/andriod_assistant/prompts/operation_prompt.py
rename to examples/android_assistant/prompts/operation_prompt.py
diff --git a/examples/andriod_assistant/requirements.txt b/examples/android_assistant/requirements.txt
similarity index 100%
rename from examples/andriod_assistant/requirements.txt
rename to examples/android_assistant/requirements.txt
diff --git a/examples/andriod_assistant/roles/__init__.py b/examples/android_assistant/roles/__init__.py
similarity index 100%
rename from examples/andriod_assistant/roles/__init__.py
rename to examples/android_assistant/roles/__init__.py
diff --git a/examples/andriod_assistant/roles/android_assistant.py b/examples/android_assistant/roles/android_assistant.py
similarity index 93%
rename from examples/andriod_assistant/roles/android_assistant.py
rename to examples/android_assistant/roles/android_assistant.py
index e662e4375..a67c4f321 100644
--- a/examples/andriod_assistant/roles/android_assistant.py
+++ b/examples/android_assistant/roles/android_assistant.py
@@ -8,14 +8,14 @@ from typing import Optional
from pydantic import Field
-from examples.andriod_assistant.actions.manual_record import ManualRecord
-from examples.andriod_assistant.actions.parse_record import ParseRecord
-from examples.andriod_assistant.actions.screenshot_parse import ScreenshotParse
-from examples.andriod_assistant.actions.self_learn_and_reflect import (
+from examples.android_assistant.actions.manual_record import ManualRecord
+from examples.android_assistant.actions.parse_record import ParseRecord
+from examples.android_assistant.actions.screenshot_parse import ScreenshotParse
+from examples.android_assistant.actions.self_learn_and_reflect import (
SelfLearnAndReflect,
)
-from examples.andriod_assistant.utils.const import ROOT_PATH
-from examples.andriod_assistant.utils.schema import AndroidActionOutput, RunState
+from examples.android_assistant.utils.const import ROOT_PATH
+from examples.android_assistant.utils.schema import AndroidActionOutput, RunState
from metagpt.actions.add_requirement import UserRequirement
from metagpt.config2 import config
from metagpt.logs import logger
diff --git a/examples/andriod_assistant/run_assistant.py b/examples/android_assistant/run_assistant.py
similarity index 97%
rename from examples/andriod_assistant/run_assistant.py
rename to examples/android_assistant/run_assistant.py
index 3d9ed5cfa..4646bca4a 100644
--- a/examples/andriod_assistant/run_assistant.py
+++ b/examples/android_assistant/run_assistant.py
@@ -7,7 +7,7 @@ from pathlib import Path
import typer
-from examples.andriod_assistant.roles.android_assistant import AndroidAssistant
+from examples.android_assistant.roles.android_assistant import AndroidAssistant
from metagpt.config2 import config
from metagpt.environment.android_env.android_env import AndroidEnv
from metagpt.team import Team
diff --git a/examples/andriod_assistant/storage/android.view.ViewGroup_1067_236_android.widget.TextView_183_204_Apps_2.txt b/examples/android_assistant/storage/android.view.ViewGroup_1067_236_android.widget.TextView_183_204_Apps_2.txt
similarity index 100%
rename from examples/andriod_assistant/storage/android.view.ViewGroup_1067_236_android.widget.TextView_183_204_Apps_2.txt
rename to examples/android_assistant/storage/android.view.ViewGroup_1067_236_android.widget.TextView_183_204_Apps_2.txt
diff --git a/examples/andriod_assistant/tests/test_an.py b/examples/android_assistant/tests/test_an.py
similarity index 89%
rename from examples/andriod_assistant/tests/test_an.py
rename to examples/android_assistant/tests/test_an.py
index 2acf4601e..0040488e7 100644
--- a/examples/andriod_assistant/tests/test_an.py
+++ b/examples/android_assistant/tests/test_an.py
@@ -6,13 +6,13 @@ import asyncio
import time
from pathlib import Path
-from examples.andriod_assistant.actions.manual_record import ManualRecord
-from examples.andriod_assistant.actions.parse_record import ParseRecord
-from examples.andriod_assistant.actions.screenshot_parse import ScreenshotParse
-from examples.andriod_assistant.actions.self_learn_and_reflect import (
+from examples.android_assistant.actions.manual_record import ManualRecord
+from examples.android_assistant.actions.parse_record import ParseRecord
+from examples.android_assistant.actions.screenshot_parse import ScreenshotParse
+from examples.android_assistant.actions.self_learn_and_reflect import (
SelfLearnAndReflect,
)
-from examples.andriod_assistant.utils.const import ROOT_PATH
+from examples.android_assistant.utils.const import ROOT_PATH
from metagpt.environment.android_env.android_env import AndroidEnv
TASK_PATH = ROOT_PATH.joinpath("unitest_Contacts")
diff --git a/examples/andriod_assistant/tests/test_parse_record.py b/examples/android_assistant/tests/test_parse_record.py
similarity index 86%
rename from examples/andriod_assistant/tests/test_parse_record.py
rename to examples/android_assistant/tests/test_parse_record.py
index f4b88f028..2a9d2b902 100644
--- a/examples/andriod_assistant/tests/test_parse_record.py
+++ b/examples/android_assistant/tests/test_parse_record.py
@@ -4,8 +4,8 @@
import asyncio
-from examples.andriod_assistant.actions.parse_record import ParseRecord
-from examples.andriod_assistant.utils.const import ROOT_PATH
+from examples.android_assistant.actions.parse_record import ParseRecord
+from examples.android_assistant.utils.const import ROOT_PATH
from metagpt.actions.action import Action
TASK_PATH = ROOT_PATH.parent.joinpath("data/demo_Contacts")
diff --git a/examples/andriod_assistant/utils/const.py b/examples/android_assistant/utils/const.py
similarity index 100%
rename from examples/andriod_assistant/utils/const.py
rename to examples/android_assistant/utils/const.py
diff --git a/examples/andriod_assistant/utils/schema.py b/examples/android_assistant/utils/schema.py
similarity index 100%
rename from examples/andriod_assistant/utils/schema.py
rename to examples/android_assistant/utils/schema.py
diff --git a/examples/andriod_assistant/utils/utils.py b/examples/android_assistant/utils/utils.py
similarity index 99%
rename from examples/andriod_assistant/utils/utils.py
rename to examples/android_assistant/utils/utils.py
index 8cd5b6114..86dea517f 100644
--- a/examples/andriod_assistant/utils/utils.py
+++ b/examples/android_assistant/utils/utils.py
@@ -10,7 +10,7 @@ from xml.etree.ElementTree import Element, iterparse
import cv2
import pyshine as ps
-from examples.andriod_assistant.utils.schema import (
+from examples.android_assistant.utils.schema import (
ActionOp,
AndroidElement,
BaseGridOpParam,