Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
remove useless Tool class attributes (#23389)
Will7fe23a0ca655
diff --git a/api/core/tools/__base/tool.py b/api/core/tools/__base/tool.pyindex 35e16b5c8f6..d6961cdaa49 100644--- a/api/core/tools/__base/tool.py+++ b/api/core/tools/__base/tool.py@@ -20,9 +20,6 @@ class Tool(ABC):The base class of a tool"""- entity: ToolEntity- runtime: ToolRuntime-def __init__(self, entity: ToolEntity, runtime: ToolRuntime) -> None:self.entity = entityself.runtime = runtimediff --git a/api/core/tools/builtin_tool/tool.py b/api/core/tools/builtin_tool/tool.pyindex 724a2291c67..84efefba07a 100644--- a/api/core/tools/builtin_tool/tool.py+++ b/api/core/tools/builtin_tool/tool.py@@ -20,8 +20,6 @@ class BuiltinTool(Tool)::param meta: the meta data of a tool call processing"""- provider: str-def __init__(self, provider: str, **kwargs):super().__init__(**kwargs)self.provider = providerdiff --git a/api/core/tools/custom_tool/tool.py b/api/core/tools/custom_tool/tool.pyindex 10653b99488..333ef2834cd 100644--- a/api/core/tools/custom_tool/tool.py+++ b/api/core/tools/custom_tool/tool.py@@ -21,9 +21,6 @@ API_TOOL_DEFAULT_TIMEOUT = (class ApiTool(Tool):- api_bundle: ApiToolBundle- provider_id: str-"""Api tool"""diff --git a/api/core/tools/mcp_tool/tool.py b/api/core/tools/mcp_tool/tool.pyindex d1bacbc7357..8ebbb6b0fe7 100644--- a/api/core/tools/mcp_tool/tool.py+++ b/api/core/tools/mcp_tool/tool.py@@ -8,23 +8,16 @@ from core.mcp.mcp_client import MCPClientfrom core.mcp.types import ImageContent, TextContentfrom core.tools.__base.tool import Toolfrom core.tools.__base.tool_runtime import ToolRuntime-from core.tools.entities.tool_entities import ToolEntity, ToolInvokeMessage, ToolParameter, ToolProviderType+from core.tools.entities.tool_entities import ToolEntity, ToolInvokeMessage, ToolProviderTypeclass MCPTool(Tool):- tenant_id: str- icon: str- runtime_parameters: Optional[list[ToolParameter]]- server_url: str- provider_id: str-def __init__(self, entity: ToolEntity, runtime: ToolRuntime, tenant_id: str, icon: str, server_url: str, provider_id: str) -> None:super().__init__(entity, runtime)self.tenant_id = tenant_idself.icon = icon- self.runtime_parameters = Noneself.server_url = server_urlself.provider_id = provider_iddiff --git a/api/core/tools/plugin_tool/tool.py b/api/core/tools/plugin_tool/tool.pyindex aef2677c367..db38c10e817 100644--- a/api/core/tools/plugin_tool/tool.py+++ b/api/core/tools/plugin_tool/tool.py@@ -9,11 +9,6 @@ from core.tools.entities.tool_entities import ToolEntity, ToolInvokeMessage, Tooclass PluginTool(Tool):- tenant_id: str- icon: str- plugin_unique_identifier: str- runtime_parameters: Optional[list[ToolParameter]]-def __init__(self, entity: ToolEntity, runtime: ToolRuntime, tenant_id: str, icon: str, plugin_unique_identifier: str) -> None:@@ -21,7 +16,7 @@ class PluginTool(Tool):self.tenant_id = tenant_idself.icon = iconself.plugin_unique_identifier = plugin_unique_identifier- self.runtime_parameters = None+ self.runtime_parameters: Optional[list[ToolParameter]] = Nonedef tool_provider_type(self) -> ToolProviderType:return ToolProviderType.PLUGINdiff --git a/api/core/tools/utils/dataset_retriever_tool.py b/api/core/tools/utils/dataset_retriever_tool.pyindex ec0575f6c33..d58807e29f8 100644--- a/api/core/tools/utils/dataset_retriever_tool.py+++ b/api/core/tools/utils/dataset_retriever_tool.py@@ -20,8 +20,6 @@ from core.tools.utils.dataset_retriever.dataset_retriever_base_tool import Datasclass DatasetRetrieverTool(Tool):- retrieval_tool: DatasetRetrieverBaseTool-def __init__(self, entity: ToolEntity, runtime: ToolRuntime, retrieval_tool: DatasetRetrieverBaseTool) -> None:super().__init__(entity, runtime)self.retrieval_tool = retrieval_tooldiff --git a/api/core/tools/workflow_as_tool/tool.py b/api/core/tools/workflow_as_tool/tool.pyindex db6b84082fb..6824e5e0e8a 100644--- a/api/core/tools/workflow_as_tool/tool.py+++ b/api/core/tools/workflow_as_tool/tool.py@@ -25,15 +25,6 @@ logger = logging.getLogger(__name__)class WorkflowTool(Tool):- workflow_app_id: str- version: str- workflow_entities: dict[str, Any]- workflow_call_depth: int- thread_pool_id: Optional[str] = None- workflow_as_tool_id: str-- label: str-"""Workflow tool."""