Table of Contents

Class SharePointOnlineDataSourcePlugin

Namespace
FoundationaLLM.Plugins.DataPipeline.Plugins.DataSource
Assembly
FoundationaLLM.DataPipelinePlugins.dll

Implements the FoundationaLLM Context File data source plugin.

public class SharePointOnlineDataSourcePlugin : PluginBase, IDataSourcePlugin
Inheritance
SharePointOnlineDataSourcePlugin
Implements
Inherited Members
Extension Methods

Constructors

SharePointOnlineDataSourcePlugin(string, Dictionary<string, object>, IPluginPackageManager, IPluginPackageManagerResolver, IServiceProvider)

Implements the FoundationaLLM Context File data source plugin.

public SharePointOnlineDataSourcePlugin(string dataSourceObjectId, Dictionary<string, object> pluginParameters, IPluginPackageManager packageManager, IPluginPackageManagerResolver packageManagerResolver, IServiceProvider serviceProvider)

Parameters

dataSourceObjectId string

The FoundationaLLM object identifier of the data source.

pluginParameters Dictionary<string, object>

The dictionary containing the plugin parameters.

packageManager IPluginPackageManager

The package manager for the plugin.

packageManagerResolver IPluginPackageManagerResolver

The package manager resolver for the plugin.

serviceProvider IServiceProvider

The service provider of the dependency injection container.

Fields

_configuration

protected readonly IConfiguration _configuration

Field Value

IConfiguration

_dataSourceResourceProvider

protected readonly IResourceProviderService? _dataSourceResourceProvider

Field Value

IResourceProviderService

Properties

Name

protected override string Name { get; }

Property Value

string

Methods

GetContentItemRawContent(ContentIdentifier)

Gets the raw content of a content item.

public Task<PluginResult<ContentItemRawContent>> GetContentItemRawContent(ContentIdentifier contentItemIdentifier)

Parameters

contentItemIdentifier ContentIdentifier

The 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

Task<List<DataPipelineContentItem>>