refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876)

This commit is contained in:
Yeuoly 2025-04-27 14:22:25 +08:00 • committed by GitHub
commit abafa68647
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 116 additions and 103 deletions

View file

@ -6,8 +6,8 @@ from flask_login import current_user # type: ignore
import contexts
from core.app.app_config.easy_ui_based_app.agent.manager import AgentConfigManager
from core.plugin.manager.agent import PluginAgentManager
from core.plugin.manager.exc import PluginDaemonClientSideError
from core.plugin.impl.agent import PluginAgentClient
from core.plugin.impl.exc import PluginDaemonClientSideError
from core.tools.tool_manager import ToolManager
from extensions.ext_database import db
from models.account import Account
@ -161,7 +161,7 @@ class AgentService:
"""
List agent providers
"""
manager = PluginAgentManager()
manager = PluginAgentClient()
return manager.fetch_agent_strategy_providers(tenant_id)
@classmethod
@ -169,7 +169,7 @@ class AgentService:
"""
Get agent provider
"""
manager = PluginAgentManager()
manager = PluginAgentClient()
try:
return manager.fetch_agent_strategy_provider(tenant_id, provider_name)
except PluginDaemonClientSideError as e: