This commit is contained in:
jyong
2025-05-25 23:09:01 +08:00
parent 0f10852b6b
commit ec1c4efca9
12 changed files with 147 additions and 110 deletions

View File

@ -20,7 +20,7 @@ class DatasourcePlugin(ABC):
self.runtime = runtime
@abstractmethod
def datasource_provider_type(self) -> DatasourceProviderType:
def datasource_provider_type(self) -> str:
"""
returns the type of the datasource provider
"""

View File

@ -9,10 +9,10 @@ from core.tools.errors import ToolProviderCredentialValidationError
class DatasourcePluginProviderController(ABC):
entity: DatasourceProviderEntityWithPlugin
entity: DatasourceProviderEntityWithPlugin | None
tenant_id: str
def __init__(self, entity: DatasourceProviderEntityWithPlugin, tenant_id: str) -> None:
def __init__(self, entity: DatasourceProviderEntityWithPlugin | None, tenant_id: str) -> None:
self.entity = entity
self.tenant_id = tenant_id