Added documentation

This commit is contained in:
Thorsten Sommer 2025-02-14 12:15:49 +01:00
parent e78e74fbc3
commit b10a3978c7
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -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;