mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-07 04:21:49 +08:00
15 lines
493 B
Python
15 lines
493 B
Python
from core.plugin.entities.plugin_daemon import PluginDatasourceProviderEntity
|
|
from core.plugin.impl.datasource import PluginDatasourceManager
|
|
|
|
|
|
class RagPipelineManageService:
|
|
@staticmethod
|
|
def list_rag_pipeline_datasources(tenant_id: str) -> list[PluginDatasourceProviderEntity]:
|
|
"""
|
|
list rag pipeline datasources
|
|
"""
|
|
|
|
# get all builtin providers
|
|
manager = PluginDatasourceManager()
|
|
return manager.fetch_datasource_providers(tenant_id)
|