refactor: unify host agent runtime access

This commit is contained in:
jxxghp
2026-08-24 06:42:07 +08:00
parent 46c5eec54e
commit 8e669d415e
11 changed files with 55 additions and 23 deletions
+2 -4
View File
@@ -37,10 +37,8 @@ from app.api.presentation.sse import build_sse_error_response, build_sse_respons
from app.agent.contracts import ReplyMode, build_display_message
from app.agent.llm.capability import AgentCapabilityManager
from app.agent.mcp import agent_mcp_manager
from app.agent.runtime_loader import (
get_moviepilot_agent_type,
get_running_agent_manager,
)
from app.agent.runtime_loader import get_moviepilot_agent_type
from app.application.agent import get_running_agent_manager
from app.chain.message import MessageChain
from app.application.commands import get_command, get_commands
from app.runtime.config import global_vars