Class PluginService
- Namespace
- FoundationaLLM.Common.Services.Plugins
- Assembly
- FoundationaLLM.Common.dll
Provides capabilities for managing plugins.
public class PluginService : IPluginService
- Inheritance
-
PluginService
- Implements
- Inherited Members
- Extension Methods
Constructors
PluginService(IResourceProviderService, IServiceProvider)
Provides capabilities for managing plugins.
public PluginService(IResourceProviderService pluginResourceProvider, IServiceProvider serviceProvider)
Parameters
pluginResourceProvider
IResourceProviderServiceThe FoundationaLLM Plugin resource provider service.
serviceProvider
IServiceProviderThe service collection provided by the dependency injection container.
Methods
GetDataPipelineStagePlugin(string, string, Dictionary<string, object>, UnifiedUserIdentity)
Retrieves the data pipeline stage plugin based on the specified plugin object identifier.
public Task<IDataPipelineStagePlugin> GetDataPipelineStagePlugin(string instanceId, string pluginObjectId, Dictionary<string, object> pluginParameters, UnifiedUserIdentity userIdentity)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
pluginObjectId
stringThe plugin object identifier.
pluginParameters
Dictionary<string, object>The dictionary containing the names and values of the plugin parameters.
userIdentity
UnifiedUserIdentityThe identity of the user running the operation.
Returns
- Task<IDataPipelineStagePlugin>
The data pipeline stage plugin.
GetDataSourcePlugin(string, string, Dictionary<string, object>, string, UnifiedUserIdentity)
Retrieves the data source plugin based on the specified plugin object identifier.
public Task<IDataSourcePlugin> GetDataSourcePlugin(string instanceId, string pluginObjectId, Dictionary<string, object> pluginParameters, string dataSourceObjectId, UnifiedUserIdentity userIdentity)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
pluginObjectId
stringThe plugin object identifier.
pluginParameters
Dictionary<string, object>The dictionary containing the names and values of the plugin parameters.
dataSourceObjectId
stringThe FoundationaLLM object identifier of the data source.
userIdentity
UnifiedUserIdentityThe identity of the user running the operation.
Returns
- Task<IDataSourcePlugin>
The data source plugin.
GetPluginPackageManager(string, string, UnifiedUserIdentity)
Retrieves the data source plugin based on the specified plugin object identifier.
public Task<IPluginPackageManager> GetPluginPackageManager(string instanceId, string pluginObjectId, UnifiedUserIdentity userIdentity)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
pluginObjectId
stringThe plugin object identifier.
userIdentity
UnifiedUserIdentityThe identity of the user running the operation.
Returns
- Task<IPluginPackageManager>
The plugin package manager instance that manages the plugin.