Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove complicated import which might lead import error #484

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading