refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876)
This commit is contained in:
parent
d91828dd90
commit
abafa68647
38 changed files with 116 additions and 103 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue