This commit is contained in:
better629 2024-03-28 09:55:07 +08:00
parent 9435f115af
commit 0a11b4af4b
22 changed files with 33 additions and 33 deletions

View file

@ -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,
)

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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

View file

@ -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

View file

@ -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")

View file

@ -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")

View file

@ -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,