Interface IDataSourcePlugin
- Namespace
- FoundationaLLM.Common.Interfaces.Plugins
- Assembly
- FoundationaLLM.Common.dll
Defines the interface for a data source plugin.
public interface IDataSourcePlugin
- Extension Methods
Methods
GetContentItemRawContent(ContentIdentifier)
Gets the raw content of a content item.
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.
Task<List<DataPipelineContentItem>> GetContentItems()
Returns
HandleUnsafeContentItem(string)
Handles an unsafe content item identified by its canonical identifier.
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.