Table of Contents

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 IResourceProviderService

The FoundationaLLM Plugin resource provider service.

serviceProvider IServiceProvider

The 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 string

The FoundationaLLM instance identifier.

pluginObjectId string

The plugin object identifier.

pluginParameters Dictionary<string, object>

The dictionary containing the names and values of the plugin parameters.

userIdentity UnifiedUserIdentity

The 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 string

The FoundationaLLM instance identifier.

pluginObjectId string

The plugin object identifier.

pluginParameters Dictionary<string, object>

The dictionary containing the names and values of the plugin parameters.

dataSourceObjectId string

The FoundationaLLM object identifier of the data source.

userIdentity UnifiedUserIdentity

The 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 string

The FoundationaLLM instance identifier.

pluginObjectId string

The plugin object identifier.

userIdentity UnifiedUserIdentity

The identity of the user running the operation.

Returns

Task<IPluginPackageManager>

The plugin package manager instance that manages the plugin.