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
refactor: add missing @override decorator to datasource plugin classes (#36494)
Sven Weidenmann1fb491337b06
diff --git a/api/core/datasource/local_file/local_file_plugin.py b/api/core/datasource/local_file/local_file_plugin.pyindex 070a89cb2fe..7d20d62cbbc 100644--- a/api/core/datasource/local_file/local_file_plugin.py+++ b/api/core/datasource/local_file/local_file_plugin.py@@ -1,3 +1,5 @@+from typing import override+from core.datasource.__base.datasource_plugin import DatasourcePluginfrom core.datasource.__base.datasource_runtime import DatasourceRuntimefrom core.datasource.entities.datasource_entities import (@@ -22,8 +24,10 @@ class LocalFileDatasourcePlugin(DatasourcePlugin):self.tenant_id = tenant_idself.plugin_unique_identifier = plugin_unique_identifier+ @overridedef datasource_provider_type(self) -> str:return DatasourceProviderType.LOCAL_FILE+ @overridedef get_icon_url(self, tenant_id: str) -> str:return self.icondiff --git a/api/core/datasource/local_file/local_file_provider.py b/api/core/datasource/local_file/local_file_provider.pyindex b2b6f51dd38..6b6f78b33d7 100644--- a/api/core/datasource/local_file/local_file_provider.py+++ b/api/core/datasource/local_file/local_file_provider.py@@ -1,4 +1,4 @@-from typing import Any+from typing import Any, overridefrom core.datasource.__base.datasource_provider import DatasourcePluginProviderControllerfrom core.datasource.__base.datasource_runtime import DatasourceRuntime@@ -19,12 +19,14 @@ class LocalFileDatasourcePluginProviderController(DatasourcePluginProviderControself.plugin_unique_identifier = plugin_unique_identifier@property+ @overridedef provider_type(self) -> DatasourceProviderType:"""returns the type of the provider"""return DatasourceProviderType.LOCAL_FILE+ @overridedef _validate_credentials(self, user_id: str, credentials: dict[str, Any]) -> None:"""validate the credentials of the providerdiff --git a/api/core/datasource/online_document/online_document_plugin.py b/api/core/datasource/online_document/online_document_plugin.pyindex ce23da1e09c..2fbf575d553 100644--- a/api/core/datasource/online_document/online_document_plugin.py+++ b/api/core/datasource/online_document/online_document_plugin.py@@ -1,5 +1,5 @@from collections.abc import Generator-from typing import Any+from typing import Any, overridefrom core.datasource.__base.datasource_plugin import DatasourcePluginfrom core.datasource.__base.datasource_runtime import DatasourceRuntime@@ -67,5 +67,6 @@ class OnlineDocumentDatasourcePlugin(DatasourcePlugin):provider_type=provider_type,)+ @overridedef datasource_provider_type(self) -> str:return DatasourceProviderType.ONLINE_DOCUMENTdiff --git a/api/core/datasource/online_document/online_document_provider.py b/api/core/datasource/online_document/online_document_provider.pyindex a128b479f4d..f1f34c8ba19 100644--- a/api/core/datasource/online_document/online_document_provider.py+++ b/api/core/datasource/online_document/online_document_provider.py@@ -1,3 +1,5 @@+from typing import override+from core.datasource.__base.datasource_provider import DatasourcePluginProviderControllerfrom core.datasource.__base.datasource_runtime import DatasourceRuntimefrom core.datasource.entities.datasource_entities import DatasourceProviderEntityWithPlugin, DatasourceProviderType@@ -17,6 +19,7 @@ class OnlineDocumentDatasourcePluginProviderController(DatasourcePluginProviderCself.plugin_unique_identifier = plugin_unique_identifier@property+ @overridedef provider_type(self) -> DatasourceProviderType:"""returns the type of the providerdiff --git a/api/core/datasource/online_drive/online_drive_plugin.py b/api/core/datasource/online_drive/online_drive_plugin.pyindex 64715226ccd..a12226a1603 100644--- a/api/core/datasource/online_drive/online_drive_plugin.py+++ b/api/core/datasource/online_drive/online_drive_plugin.py@@ -1,4 +1,5 @@from collections.abc import Generator+from typing import overridefrom core.datasource.__base.datasource_plugin import DatasourcePluginfrom core.datasource.__base.datasource_runtime import DatasourceRuntime@@ -67,5 +68,6 @@ class OnlineDriveDatasourcePlugin(DatasourcePlugin):provider_type=provider_type,)+ @overridedef datasource_provider_type(self) -> str:return DatasourceProviderType.ONLINE_DRIVEdiff --git a/api/core/datasource/online_drive/online_drive_provider.py b/api/core/datasource/online_drive/online_drive_provider.pyindex d0923ed807c..d4a6942d098 100644--- a/api/core/datasource/online_drive/online_drive_provider.py+++ b/api/core/datasource/online_drive/online_drive_provider.py@@ -1,3 +1,5 @@+from typing import override+from core.datasource.__base.datasource_provider import DatasourcePluginProviderControllerfrom core.datasource.__base.datasource_runtime import DatasourceRuntimefrom core.datasource.entities.datasource_entities import DatasourceProviderEntityWithPlugin, DatasourceProviderType@@ -17,6 +19,7 @@ class OnlineDriveDatasourcePluginProviderController(DatasourcePluginProviderContself.plugin_unique_identifier = plugin_unique_identifier@property+ @overridedef provider_type(self) -> DatasourceProviderType:"""returns the type of the providerdiff --git a/api/core/datasource/website_crawl/website_crawl_plugin.py b/api/core/datasource/website_crawl/website_crawl_plugin.pyindex 087ac65a7ad..c5c9b4c0f2e 100644--- a/api/core/datasource/website_crawl/website_crawl_plugin.py+++ b/api/core/datasource/website_crawl/website_crawl_plugin.py@@ -1,5 +1,5 @@from collections.abc import Generator, Mapping-from typing import Any+from typing import Any, overridefrom core.datasource.__base.datasource_plugin import DatasourcePluginfrom core.datasource.__base.datasource_runtime import DatasourceRuntime@@ -47,5 +47,6 @@ class WebsiteCrawlDatasourcePlugin(DatasourcePlugin):provider_type=provider_type,)+ @overridedef datasource_provider_type(self) -> str:return DatasourceProviderType.WEBSITE_CRAWLdiff --git a/api/core/datasource/website_crawl/website_crawl_provider.py b/api/core/datasource/website_crawl/website_crawl_provider.pyindex 8c0f20ce2de..0dfdf3c0ddd 100644--- a/api/core/datasource/website_crawl/website_crawl_provider.py+++ b/api/core/datasource/website_crawl/website_crawl_provider.py@@ -1,3 +1,5 @@+from typing import override+from core.datasource.__base.datasource_provider import DatasourcePluginProviderControllerfrom core.datasource.__base.datasource_runtime import DatasourceRuntimefrom core.datasource.entities.datasource_entities import DatasourceProviderEntityWithPlugin, DatasourceProviderType@@ -21,6 +23,7 @@ class WebsiteCrawlDatasourcePluginProviderController(DatasourcePluginProviderConself.plugin_unique_identifier = plugin_unique_identifier@property+ @overridedef provider_type(self) -> DatasourceProviderType:"""returns the type of the provider