Class ContextFileDataSourcePlugin
- Namespace
- FoundationaLLM.Plugins.DataPipeline.Plugins.DataSource
- Assembly
- FoundationaLLM.DataPipelinePlugins.dll
Implements the FoundationaLLM Context File data source plugin.
public class ContextFileDataSourcePlugin : PluginBase, IDataSourcePlugin
- Inheritance
-
ContextFileDataSourcePlugin
- Implements
- Inherited Members
- Extension Methods
Constructors
ContextFileDataSourcePlugin(string, Dictionary<string, object>, IPluginPackageManager, IPluginPackageManagerResolver, IServiceProvider)
Implements the FoundationaLLM Context File data source plugin.
public ContextFileDataSourcePlugin(string dataSourceObjectId, Dictionary<string, object> pluginParameters, IPluginPackageManager packageManager, IPluginPackageManagerResolver packageManagerResolver, IServiceProvider serviceProvider)
Parameters
dataSourceObjectIdstringThe FoundationaLLM object identifier of the data source.
pluginParametersDictionary<string, object>The dictionary containing the plugin parameters.
packageManagerIPluginPackageManagerThe package manager for the plugin.
packageManagerResolverIPluginPackageManagerResolverThe package manager resolver for the plugin.
serviceProviderIServiceProviderThe service provider of the dependency injection container.
Properties
Name
protected override string Name { get; }
Property Value
Methods
GetContentItemRawContent(ContentIdentifier)
Gets the raw content of a content item.
public Task<PluginResult<ContentItemRawContent>> GetContentItemRawContent(ContentIdentifier contentItemIdentifier)
Parameters
contentItemIdentifierContentIdentifierThe identifier of the content item.
Returns
- Task<PluginResult<ContentItemRawContent>>
A PluginResult<T> object with the conten item's raw content.
GetContentItems()
Gets the list of content items from the data source.
public Task<List<DataPipelineContentItem>> GetContentItems()
Returns
HandleUnsafeContentItem(string)
Handles an unsafe content item identified by its canonical identifier.
public Task HandleUnsafeContentItem(string canonicalContentItemIdentifier)
Parameters
canonicalContentItemIdentifierstringThe canonical identifier of the content item to be handled. Cannot be null or empty.
Returns
- Task
A task that represents the asynchronous operation.