mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 23:18:00 +00:00
Added documentation
This commit is contained in:
1 file changed
+7
@@ -21,6 +21,13 @@ public sealed class DataSourceService
|
|||||||
this.logger.LogInformation("The data source service has been initialized.");
|
this.logger.LogInformation("The data source service has been initialized.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a list of data sources that are allowed for the selected LLM provider.
|
||||||
|
/// It also returns the data sources selected before when they are still allowed.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="selectedLLMProvider">The selected LLM provider.</param>
|
||||||
|
/// <param name="previousSelectedDataSources">The data sources selected before.</param>
|
||||||
|
/// <returns>The allowed data sources and the data sources selected before -- when they are still allowed.</returns>
|
||||||
public async Task<AllowedSelectedDataSources> GetDataSources(AIStudio.Settings.Provider selectedLLMProvider, IReadOnlyCollection<IDataSource>? previousSelectedDataSources = null)
|
public async Task<AllowedSelectedDataSources> GetDataSources(AIStudio.Settings.Provider selectedLLMProvider, IReadOnlyCollection<IDataSource>? previousSelectedDataSources = null)
|
||||||
{
|
{
|
||||||
var allDataSources = this.settingsManager.ConfigurationData.DataSources;
|
var allDataSources = this.settingsManager.ConfigurationData.DataSources;
|
||||||
|
|||||||
Reference in new issue
Block a user