Skip to content

Commit 239d576

Browse files
committed
分离manager和tools
1 parent 12d761e commit 239d576

3 files changed

Lines changed: 580 additions & 565 deletions

File tree

astrbot/core/astr_main_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
from astrbot.core.star.context import Context
4747
from astrbot.core.star.star import star_registry
4848
from astrbot.core.star.star_handler import star_map
49+
from astrbot.core.subagent_manager import SubAgentManager
4950
from astrbot.core.subagent_orchestrator import SubAgentOrchestrator
5051
from astrbot.core.tools.computer_tools import (
5152
AnnotateExecutionTool,
@@ -1012,7 +1013,7 @@ async def _apply_subagent_manager_tools(
10121013
req.func_tool = ToolSet()
10131014

10141015
try:
1015-
from astrbot.core.subagent_manager import (
1016+
from astrbot.core.subagent_tools import (
10161017
CREATE_SUBAGENT_TOOL,
10171018
LIST_SUBAGENTS_TOOL,
10181019
PROTECT_SUBAGENT_TOOL,
@@ -1022,7 +1023,6 @@ async def _apply_subagent_manager_tools(
10221023
UNPROTECT_SUBAGENT_TOOL,
10231024
VIEW_SHARED_CONTEXT_TOOL,
10241025
WAIT_FOR_SUBAGENT_TOOL,
1025-
SubAgentManager,
10261026
)
10271027

10281028
# Configure SubAgentManager with settings from subagent_orchestrator

0 commit comments

Comments
 (0)