From b10a3978c78f55be8700cd85d463c37e3f4a9311 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Fri, 14 Feb 2025 12:15:49 +0100 Subject: [PATCH] Added documentation --- app/MindWork AI Studio/Tools/Services/DataSourceService.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/MindWork AI Studio/Tools/Services/DataSourceService.cs b/app/MindWork AI Studio/Tools/Services/DataSourceService.cs index c193ee8d..151be631 100644 --- a/app/MindWork AI Studio/Tools/Services/DataSourceService.cs +++ b/app/MindWork AI Studio/Tools/Services/DataSourceService.cs @@ -21,6 +21,13 @@ public sealed class DataSourceService this.logger.LogInformation("The data source service has been initialized."); } + /// + /// 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. + /// + /// The selected LLM provider. + /// The data sources selected before. + /// The allowed data sources and the data sources selected before -- when they are still allowed. public async Task GetDataSources(AIStudio.Settings.Provider selectedLLMProvider, IReadOnlyCollection? previousSelectedDataSources = null) { var allDataSources = this.settingsManager.ConfigurationData.DataSources;