Skip to content

Commit

Permalink
remove complicated import which might lead import error (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhangpurdue authored Jun 13, 2024
1 parent be7f480 commit 2f2660c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/mobile_agent/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os

from modelscope_agent.agents.mobile_agent_v2 import MobileAgentV2
from modelscope_agent.environment import ADBEnvironment
from modelscope_agent.environment.android_adb import ADBEnvironment

parser = argparse.ArgumentParser()
parser.add_argument('--adb_path', type=str, default='./adb/adb')
Expand Down
2 changes: 1 addition & 1 deletion apps/multi_roles_chat_room/role_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import ray
from modelscope_agent import create_component
from modelscope_agent.agent_env_util import AgentEnvMixin
from modelscope_agent.agents import MultiRolePlay
from modelscope_agent.agents.multi_role_play import MultiRolePlay
from modelscope_agent.task_center import TaskCenter
from story_holder import get_story_by_id

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Furthermore, if the tool is a `langchain tool`, you can directly use our `Langch
from langchain.tools import ShellTool
from modelscope_agent.tools.langchain_proxy_tool import LangchainTool
from modelscope_agent.agents import RolePlay
from modelscope_agent.tools import TOOL_REGISTRY
from modelscope_agent.tools.base import TOOL_REGISTRY

# All LangchainTools should be registered in this manner, with 'terminal' being the tool name that will change according to the task.
TOOL_REGISTRY['terminal'] = LangchainTool
Expand Down
3 changes: 0 additions & 3 deletions modelscope_agent/agents/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
from .agent_builder import AgentBuilder
from .gen_keyword import GenKeyword
from .mobile_agent_v2 import MobileAgentV2
from .multi_role_play import MultiRolePlay
from .role_play import RolePlay
1 change: 0 additions & 1 deletion modelscope_agent/environment/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .android_adb import ADBEnvironment
from .environment import Environment

0 comments on commit 2f2660c

Please sign in to comment.