Interface IPluginPackageManager
- Namespace
 - FoundationaLLM.Common.Interfaces.Plugins
 
- Assembly
 - FoundationaLLM.Common.dll
 
Provides methods to manage plugins in FoundationaLLM plugin packages.
public interface IPluginPackageManager
  - Extension Methods
 
Methods
GetContentTextExtractionPlugin(string, Dictionary<string, object>, IPluginPackageManagerResolver, IServiceProvider)
Gets a content text extraction plugin by its name.
IContentTextExtractionPlugin GetContentTextExtractionPlugin(string pluginName, Dictionary<string, object> pluginParameters, IPluginPackageManagerResolver packageManagerResolver, IServiceProvider serviceProvider)
  Parameters
pluginNamestringThe name of the content text extraction plugin.
pluginParametersDictionary<string, object>The dictionary containing the plugin parameters.
packageManagerResolverIPluginPackageManagerResolverThe package manager resolver for the plugin.
serviceProviderIServiceProviderThe service provider of the dependency injection container.
Returns
- IContentTextExtractionPlugin
 The IContentTextExtractionPlugin interface implemented by the content text extraction plugin.
Exceptions
GetContentTextPartitioningPlugin(string, Dictionary<string, object>, IPluginPackageManagerResolver, IServiceProvider)
Gets a content text partitioning plugin by its name.
IContentTextPartitioningPlugin GetContentTextPartitioningPlugin(string pluginName, Dictionary<string, object> pluginParameters, IPluginPackageManagerResolver packageManagerResolver, IServiceProvider serviceProvider)
  Parameters
pluginNamestringThe name of the content text partitioning plugin.
pluginParametersDictionary<string, object>The dictionary containing the plugin parameters.
packageManagerResolverIPluginPackageManagerResolverThe package manager resolver for the plugin.
serviceProviderIServiceProviderThe service provider of the dependency injection container.
Returns
- IContentTextPartitioningPlugin
 The IContentTextExtractionPlugin interface implemented by the content text partitioning plugin.
Exceptions
GetDataPipelineStagePlugin(string, Dictionary<string, object>, IPluginPackageManagerResolver, IServiceProvider)
Gets a data pipeline stage plugin by its name.
IDataPipelineStagePlugin GetDataPipelineStagePlugin(string pluginName, Dictionary<string, object> pluginParameters, IPluginPackageManagerResolver packageManagerResolver, IServiceProvider serviceProvider)
  Parameters
pluginNamestringThe name of the data pipeline stage plugin.
pluginParametersDictionary<string, object>The dictionary containing the plugin parameters.
packageManagerResolverIPluginPackageManagerResolverThe package manager resolver for the plugin.
serviceProviderIServiceProviderThe service provider of the dependency injection container.
Returns
- IDataPipelineStagePlugin
 The IDataPipelineStagePlugin interface implemented by the data pipeline stage plugin.
Exceptions
GetDataSourcePlugin(string, string, Dictionary<string, object>, IPluginPackageManagerResolver, IServiceProvider)
Gets a data source plugin by its name.
IDataSourcePlugin GetDataSourcePlugin(string pluginName, string dataSourceObjectId, Dictionary<string, object> pluginParameters, IPluginPackageManagerResolver packageManagerResolver, IServiceProvider serviceProvider)
  Parameters
pluginNamestringThe name of the data source plugin.
dataSourceObjectIdstringThe FoundationaLLM object identifier of the data source.
pluginParametersDictionary<string, object>The dictionary containing the plugin parameters.
packageManagerResolverIPluginPackageManagerResolverThe package manager resolver for the plugin.
serviceProviderIServiceProviderThe service provider of the dependency injection container.
Returns
- IDataSourcePlugin
 The IDataSourcePlugin interface implemented by the data source plugin.
Exceptions
GetMetadata(string)
Gets the plugin package configuration with the plugin configurations of to the plugins in the package.
PluginPackageMetadata GetMetadata(string instanceId)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
Returns
- PluginPackageMetadata
 An object of type PluginPackageMetadata.
RegisterService(string, object)
Registers an internal service in the plugin package.
void RegisterService(string serviceName, object service)
  Parameters
TryGetService(string, out object?)
Tries to get a service that is registered internally in the plugin package.
bool TryGetService(string serviceName, out object? service)
  Parameters
serviceNamestringThe name of the service to be retrieved.
serviceobjectWhen the method returns, contains the requested service if it was found; otherwise, null.