From a1170749726c54060aa6a7ac601b03956ed2f6fa Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Fri, 27 Nov 2026 12:08:00 +0100 Subject: [PATCH] Renamed the settings of AI tasks (#1239) --- app/MindWork AI Studio/AIOperations/AGENTS.md | 2 +- .../DataSourceChoiceOperation.cs | 10 +- .../PluginAudit/PluginAuditOperation.cs | 4 +- .../RetrievalContextValidationOperation.cs | 12 +- .../TextContentCleaningOperation.cs | 6 +- .../Builder/AssistantBuilder.razor.cs | 18 +- .../Assistants/Dynamic/AssistantDynamic.razor | 4 +- .../Dynamic/AssistantDynamic.razor.cs | 9 + .../Assistants/Dynamic/WebContentState.cs | 4 +- .../Assistants/I18N/allTexts.lua | 118 +- .../LegalCheck/AssistantLegalCheck.razor | 6 +- .../LegalCheck/AssistantLegalCheck.razor.cs | 22 +- .../SWOTAnalysis/AssistantSWOTAnalysis.razor | 8 +- .../AssistantSWOTAnalysis.razor.cs | 22 +- .../AssistantTextSummarizer.razor | 4 +- .../AssistantTextSummarizer.razor.cs | 22 +- .../Translation/AssistantTranslation.razor | 6 +- .../Translation/AssistantTranslation.razor.cs | 22 +- app/MindWork AI Studio/Chat/ChatThread.cs | 2 +- .../Components/ChatComponent.razor | 2 +- .../Components/ChatComponent.razor.cs | 2 +- ...entSelected.cs => DataSourceAISelected.cs} | 2 +- .../Components/DataSourceSelection.razor | 4 +- .../Components/DataSourceSelection.razor.cs | 10 +- .../Components/ReadWebContent.razor | 10 +- .../Components/ReadWebContent.razor.cs | 30 +- ...> SettingsPanelAITaskAssistantAudit.razor} | 2 +- ...ettingsPanelAITaskAssistantAudit.razor.cs} | 2 +- .../SettingsPanelAITaskContentCleaner.razor | 13 + ...SettingsPanelAITaskContentCleaner.razor.cs | 3 + ...ttingsPanelAITaskDataSourceSelection.razor | 13 + ...ngsPanelAITaskDataSourceSelection.razor.cs | 3 + ...anelAITaskRetrievalContextValidation.razor | 18 + ...lAITaskRetrievalContextValidation.razor.cs | 3 + .../SettingsPanelAgentContentCleaner.razor | 13 - .../SettingsPanelAgentContentCleaner.razor.cs | 3 - ...ettingsPanelAgentDataSourceSelection.razor | 13 - ...ingsPanelAgentDataSourceSelection.razor.cs | 3 - ...PanelAgentRetrievalContextValidation.razor | 18 - ...elAgentRetrievalContextValidation.razor.cs | 3 - .../Dialogs/AssistantPluginAuditDialog.razor | 2 +- .../Settings/SettingsDialogLegalCheck.razor | 2 +- .../Settings/SettingsDialogSWOTAnalysis.razor | 2 +- .../SettingsDialogTextSummarizer.razor | 2 +- .../Settings/SettingsDialogTranslation.razor | 2 +- app/MindWork AI Studio/Pages/Settings.razor | 8 +- .../Plugins/assistants/README.md | 10 +- .../Plugins/assistants/plugin.lua | 2 +- .../Plugins/configuration/plugin.lua | 56 +- .../plugin.lua | 128 +- .../plugin.lua | 118 +- .../Settings/DataModel/Data.cs | 6 +- .../DataModel/DataAssistantPluginAudit.cs | 2 +- ...election.cs => DataDataSourceSelection.cs} | 10 +- .../Settings/DataModel/DataLegalCheck.cs | 2 +- ...n.cs => DataRetrievalContextValidation.cs} | 10 +- .../Settings/DataModel/DataSWOTAnalysis.cs | 2 +- .../DataModel/DataTextContentCleaner.cs | 6 +- .../Settings/DataModel/DataTextSummarizer.cs | 2 +- .../Settings/DataModel/DataTranslation.cs | 2 +- .../DataAgentDataSourceSelectionV6.cs | 24 + .../DataAgentRetrievalContextValidationV6.cs | 34 + .../DataAssistantPluginAuditV6.cs | 45 + .../PreviousModels/DataLegalCheckV6.cs | 44 + .../PreviousModels/DataSWOTAnalysisV6.cs | 54 + .../DataTextContentCleanerV6.cs | 24 + .../PreviousModels/DataTextSummarizerV6.cs | 65 + .../PreviousModels/DataTranslationV6.cs | 59 + .../DataModel/PreviousModels/DataV4.cs | 8 +- .../DataModel/PreviousModels/DataV5.cs | 18 +- .../DataModel/PreviousModels/DataV6.cs | 204 ++ .../DataSourceSecurityTrustExtensions.cs | 2 +- .../Settings/SettingsJsonContext.cs | 1 + .../Settings/SettingsManager.cs | 10 +- .../Settings/SettingsMigrations.cs | 213 +- app/MindWork AI Studio/Settings/Version.cs | 1 + app/MindWork AI Studio/Tools/Components.cs | 8 +- .../Tools/ComponentsExtensions.cs | 16 +- .../DataModel/AssistantWebContentReader.cs | 8 +- .../DataModel/ComponentPropSpecs.cs | 9 +- .../Assistants/DataModel/PropSpec.cs | 55 +- .../Assistants/PluginAssistants.cs | 4 +- .../Tools/PluginSystem/FormerSettingNames.cs | 94 + .../Tools/PluginSystem/PluginConfiguration.cs | 26 +- .../AugmentationProcesses/AugmentationOne.cs | 2 +- ...lWithDynHeur.cs => AISrcSelWithDynHeur.cs} | 14 +- .../RAG/RAGProcesses/AISrcSelWithRetCtxVal.cs | 2 +- .../Tools/Services/DataSourceService.cs | 10 +- .../wwwroot/changelog/v26.11.2.md | 3 + .../DataSourceChoiceProviderTests.cs | 10 +- .../AIOperations/PluginAuditProviderTests.cs | 2 +- ...RetrievalContextValidationProviderTests.cs | 4 +- .../TextContentCleaningProviderTests.cs | 10 +- .../AssistantCategoryOfComponentsTests.cs | 8 +- app/Tests/Chat/ChatThreadRollbackTests.cs | 2 +- .../Serialization/Fixtures/settings-v6.json | 1759 +++++++++++++++++ .../Serialization/Fixtures/settings.json | 28 +- .../Serialization/JsonGoldenFileTests.cs | 17 + app/Tests/Serialization/JsonTestRoots.cs | 1 + ...sts.cs => AITaskMinimumConfidenceTests.cs} | 16 +- .../EnterpriseEncryptionExportFormatTests.cs | 26 + .../Settings/SettingsMigrationV7Tests.cs | 230 +++ app/Tests/Settings/SettingsStorageTests.cs | 6 +- app/Tests/Tools/AppUserAgentTests.cs | 14 +- .../DataSourceParticipatingOperationsTests.cs | 2 +- .../AssistantPropFormerNamesTests.cs | 142 ++ .../PluginSystem/FormerSettingNamesTests.cs | 237 +++ ...-10-enterprise-encryption-export-format.md | 5 +- .../2026-11-ai-task-setting-names.md | 46 + 109 files changed, 3929 insertions(+), 538 deletions(-) rename app/MindWork AI Studio/Components/{DataSourceAgentSelected.cs => DataSourceAISelected.cs} (93%) rename app/MindWork AI Studio/Components/Settings/{SettingsPanelAgentAssistantAudit.razor => SettingsPanelAITaskAssistantAudit.razor} (84%) rename app/MindWork AI Studio/Components/Settings/{SettingsPanelAgentAssistantAudit.razor.cs => SettingsPanelAITaskAssistantAudit.razor.cs} (96%) create mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskContentCleaner.razor create mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskContentCleaner.razor.cs create mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskDataSourceSelection.razor create mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskDataSourceSelection.razor.cs create mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskRetrievalContextValidation.razor create mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskRetrievalContextValidation.razor.cs delete mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAgentContentCleaner.razor delete mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAgentContentCleaner.razor.cs delete mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAgentDataSourceSelection.razor delete mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAgentDataSourceSelection.razor.cs delete mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAgentRetrievalContextValidation.razor delete mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelAgentRetrievalContextValidation.razor.cs rename app/MindWork AI Studio/Settings/DataModel/{DataAgentDataSourceSelection.cs => DataDataSourceSelection.cs} (54%) rename app/MindWork AI Studio/Settings/DataModel/{DataAgentRetrievalContextValidation.cs => DataRetrievalContextValidation.cs} (66%) create mode 100644 app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAgentDataSourceSelectionV6.cs create mode 100644 app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAgentRetrievalContextValidationV6.cs create mode 100644 app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAssistantPluginAuditV6.cs create mode 100644 app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataLegalCheckV6.cs create mode 100644 app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataSWOTAnalysisV6.cs create mode 100644 app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTextContentCleanerV6.cs create mode 100644 app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTextSummarizerV6.cs create mode 100644 app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTranslationV6.cs create mode 100644 app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV6.cs create mode 100644 app/MindWork AI Studio/Tools/PluginSystem/FormerSettingNames.cs rename app/MindWork AI Studio/Tools/RAG/DataSourceSelectionProcesses/{AgenticSrcSelWithDynHeur.cs => AISrcSelWithDynHeur.cs} (92%) create mode 100644 app/Tests/Serialization/Fixtures/settings-v6.json rename app/Tests/Settings/{BackgroundTaskMinimumConfidenceTests.cs => AITaskMinimumConfidenceTests.cs} (73%) create mode 100644 app/Tests/Settings/SettingsMigrationV7Tests.cs create mode 100644 app/Tests/Tools/PluginSystem/AssistantPropFormerNamesTests.cs create mode 100644 app/Tests/Tools/PluginSystem/FormerSettingNamesTests.cs create mode 100644 documentation/compatibility-shims/2026-11-ai-task-setting-names.md diff --git a/app/MindWork AI Studio/AIOperations/AGENTS.md b/app/MindWork AI Studio/AIOperations/AGENTS.md index 35c271155..73ce9464e 100644 --- a/app/MindWork AI Studio/AIOperations/AGENTS.md +++ b/app/MindWork AI Studio/AIOperations/AGENTS.md @@ -70,7 +70,7 @@ text content cleaner. Each operation has a preferred provider and a minimum confidence in its settings data class, managed through `ManagedConfiguration` and documented in `Plugins/configuration/plugin.lua`. With a switch such as -`PreselectAgentOptions`, both apply only while it is on, like the settings of the assistants. Add the minimum +`PreselectOptions`, both apply only while it is on, like the settings of the assistants. Add the minimum to `ComponentsExtensions.MinimumConfidence` as well, so that the provider selections of the settings filter by it. diff --git a/app/MindWork AI Studio/AIOperations/DataSourceChoice/DataSourceChoiceOperation.cs b/app/MindWork AI Studio/AIOperations/DataSourceChoice/DataSourceChoiceOperation.cs index ab3594179..3781550fb 100644 --- a/app/MindWork AI Studio/AIOperations/DataSourceChoice/DataSourceChoiceOperation.cs +++ b/app/MindWork AI Studio/AIOperations/DataSourceChoice/DataSourceChoiceOperation.cs @@ -13,7 +13,7 @@ namespace AIStudio.AIOperations.DataSourceChoice; /// Chooses the data sources which fit a prompt, from the descriptions of the data sources. /// /// -/// The classic RAG process runs it before it searches, see AgenticSrcSelWithDynHeur. +/// The classic RAG process runs it before it searches, see AISrcSelWithDynHeur. /// public sealed class DataSourceChoiceOperation(ILogger logger, SettingsManager settingsManager, DataSourceDescriptionService descriptionService) : AIOperationBase(logger, settingsManager) { @@ -79,9 +79,9 @@ public sealed class DataSourceChoiceOperation(ILogger /// The preferred provider and the minimum confidence, or none of them while the preselection is switched off. public static AIOperationProviderSettings GetProviderSettings(SettingsManager settingsManager) { - var settings = settingsManager.ConfigurationData.AgentDataSourceSelection; - return settings.PreselectAgentOptions - ? new(settings.PreselectedAgentProvider, settings.MinimumProviderConfidence) + var settings = settingsManager.ConfigurationData.DataSourceSelection; + return settings.PreselectOptions + ? new(settings.PreselectedProvider, settings.MinimumProviderConfidence) : AIOperationProviderSettings.NONE; } @@ -91,7 +91,7 @@ public sealed class DataSourceChoiceOperation(ILogger public override string Id => "Data Source Selection"; /// - public override Tools.Components Component => Tools.Components.AGENT_DATA_SOURCE_SELECTION; + public override Tools.Components Component => Tools.Components.AI_TASK_DATA_SOURCE_SELECTION; /// /// The model reads the descriptions of the data sources, so it has to reach what they require. diff --git a/app/MindWork AI Studio/AIOperations/PluginAudit/PluginAuditOperation.cs b/app/MindWork AI Studio/AIOperations/PluginAudit/PluginAuditOperation.cs index b29d49935..bc1c58f50 100644 --- a/app/MindWork AI Studio/AIOperations/PluginAudit/PluginAuditOperation.cs +++ b/app/MindWork AI Studio/AIOperations/PluginAudit/PluginAuditOperation.cs @@ -106,7 +106,7 @@ public sealed class PluginAuditOperation(ILogger logger, S public static AIOperationProviderSettings GetProviderSettings(SettingsManager settingsManager) { var settings = settingsManager.ConfigurationData.AssistantPluginAudit; - return new(settings.PreselectedAgentProvider, settings.MinimumProviderConfidence); + return new(settings.PreselectedProvider, settings.MinimumProviderConfidence); } #region Overrides of AIOperationBase @@ -115,7 +115,7 @@ public sealed class PluginAuditOperation(ILogger logger, S public override string Id => "Assistant Plugin Security Audit"; /// - public override Tools.Components Component => Tools.Components.AGENT_ASSISTANT_PLUGIN_AUDIT; + public override Tools.Components Component => Tools.Components.AI_TASK_ASSISTANT_PLUGIN_AUDIT; /// /// A plugin requires nothing of its own: whoever may audit it is decided by the minimum of the audit. diff --git a/app/MindWork AI Studio/AIOperations/RetrievalContextValidation/RetrievalContextValidationOperation.cs b/app/MindWork AI Studio/AIOperations/RetrievalContextValidation/RetrievalContextValidationOperation.cs index 451aae92f..45427dcac 100644 --- a/app/MindWork AI Studio/AIOperations/RetrievalContextValidation/RetrievalContextValidationOperation.cs +++ b/app/MindWork AI Studio/AIOperations/RetrievalContextValidation/RetrievalContextValidationOperation.cs @@ -75,9 +75,9 @@ public sealed class RetrievalContextValidationOperation(ILoggerThe preferred provider and the minimum confidence, or none of them while the preselection is switched off. public static AIOperationProviderSettings GetProviderSettings(SettingsManager settingsManager) { - var settings = settingsManager.ConfigurationData.AgentRetrievalContextValidation; - return settings.PreselectAgentOptions - ? new(settings.PreselectedAgentProvider, settings.MinimumProviderConfidence) + var settings = settingsManager.ConfigurationData.RetrievalContextValidation; + return settings.PreselectOptions + ? new(settings.PreselectedProvider, settings.MinimumProviderConfidence) : AIOperationProviderSettings.NONE; } @@ -87,7 +87,7 @@ public sealed class RetrievalContextValidationOperation(ILogger "Retrieval Context Validation"; /// - public override Tools.Components Component => Tools.Components.AGENT_RETRIEVAL_CONTEXT_VALIDATION; + public override Tools.Components Component => Tools.Components.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION; /// /// The model reads the passages, so it has to reach what the chat requires of every provider which reads its data. @@ -121,8 +121,8 @@ public sealed class RetrievalContextValidationOperation(ILogger RetrievalContextValidationResult.NotAnswered(retrievalContext, "The last prompt was empty.")).ToList(); } - var settings = this.SettingsManager.ConfigurationData.AgentRetrievalContextValidation; - var numParallelValidations = settings.PreselectAgentOptions ? settings.NumParallelValidations : DEFAULT_PARALLEL_VALIDATIONS; + var settings = this.SettingsManager.ConfigurationData.RetrievalContextValidation; + var numParallelValidations = settings.PreselectOptions ? settings.NumParallelValidations : DEFAULT_PARALLEL_VALIDATIONS; // // A semaphore of this call limits the validations running at once. It is local, so that diff --git a/app/MindWork AI Studio/AIOperations/TextContentCleaning/TextContentCleaningOperation.cs b/app/MindWork AI Studio/AIOperations/TextContentCleaning/TextContentCleaningOperation.cs index e09d1083c..e7ba8303c 100644 --- a/app/MindWork AI Studio/AIOperations/TextContentCleaning/TextContentCleaningOperation.cs +++ b/app/MindWork AI Studio/AIOperations/TextContentCleaning/TextContentCleaningOperation.cs @@ -32,8 +32,8 @@ public sealed class TextContentCleaningOperation(ILogger "Text Content Cleaning"; /// - public override Tools.Components Component => Tools.Components.AGENT_TEXT_CONTENT_CLEANER; + public override Tools.Components Component => Tools.Components.AI_TASK_TEXT_CONTENT_CLEANER; /// /// A web page requires nothing of its own: the user chose to read it with the assistant. diff --git a/app/MindWork AI Studio/Assistants/Builder/AssistantBuilder.razor.cs b/app/MindWork AI Studio/Assistants/Builder/AssistantBuilder.razor.cs index 3e35b6cf7..9980cdadf 100644 --- a/app/MindWork AI Studio/Assistants/Builder/AssistantBuilder.razor.cs +++ b/app/MindWork AI Studio/Assistants/Builder/AssistantBuilder.razor.cs @@ -70,7 +70,7 @@ public partial class AssistantBuilder : AssistantBaseCore this.GenerateAssistantSpec, }; - protected override bool SubmitDisabled => this.isAgentRunning || this.IsInstallFlowRunning; + protected override bool SubmitDisabled => this.isGenerating || this.IsInstallFlowRunning; protected override bool ShowResult => false; @@ -91,7 +91,7 @@ public partial class AssistantBuilder : AssistantBaseCore Result2Copy => () => !string.IsNullOrWhiteSpace(this.generatedLuaAssistant) ? this.generatedLuaAssistant : this.generatedAssistantSpec; private BuilderStep step = BuilderStep.DESCRIBE; - private bool isAgentRunning; + private bool isGenerating; private bool isCheckingPlugin; private bool isInstallingPlugin; private bool isAuditingPlugin; @@ -129,7 +129,7 @@ public partial class AssistantBuilder : AssistantBaseCore STEP_STATE_KEY = new(nameof(step)); - private static readonly AssistantSessionStateKey IS_AGENT_RUNNING_STATE_KEY = new(nameof(isAgentRunning)); + private static readonly AssistantSessionStateKey IS_GENERATING_STATE_KEY = new(nameof(isGenerating)); private static readonly AssistantSessionStateKey IS_CHECKING_PLUGIN_STATE_KEY = new(nameof(isCheckingPlugin)); private static readonly AssistantSessionStateKey IS_INSTALLING_PLUGIN_STATE_KEY = new(nameof(isInstallingPlugin)); private static readonly AssistantSessionStateKey IS_AUDITING_PLUGIN_STATE_KEY = new(nameof(isAuditingPlugin)); @@ -286,7 +286,7 @@ public partial class AssistantBuilder : AssistantBaseCore this.step = value); - state.Restore(IS_AGENT_RUNNING_STATE_KEY, value => this.isAgentRunning = value); + state.Restore(IS_GENERATING_STATE_KEY, value => this.isGenerating = value); state.Restore(IS_CHECKING_PLUGIN_STATE_KEY, value => this.isCheckingPlugin = value); state.Restore(IS_INSTALLING_PLUGIN_STATE_KEY, value => this.isInstallingPlugin = value); state.Restore(IS_AUDITING_PLUGIN_STATE_KEY, value => this.isAuditingPlugin = value); @@ -427,7 +427,7 @@ public partial class AssistantBuilder : AssistantBaseCore + @bind-PreselectContentCleaner="@webState.PreselectContentCleaner" /> } break; diff --git a/app/MindWork AI Studio/Assistants/Dynamic/AssistantDynamic.razor.cs b/app/MindWork AI Studio/Assistants/Dynamic/AssistantDynamic.razor.cs index 8ca176852..dfce3de54 100644 --- a/app/MindWork AI Studio/Assistants/Dynamic/AssistantDynamic.razor.cs +++ b/app/MindWork AI Studio/Assistants/Dynamic/AssistantDynamic.razor.cs @@ -663,6 +663,15 @@ public partial class AssistantDynamic : AssistantBaseCore if (!prop.Key.TryRead(out var propName) || string.IsNullOrWhiteSpace(propName)) continue; + // A plugin may still use a former name of a prop. The current name wins when the update holds both: + if (propSpec is not null) + { + if (!propSpec.TryGetCurrentName(propName, propsTable, out var currentName)) + continue; + + propName = currentName; + } + if (propSpec is not null && propSpec.NonWriteable.Contains(propName, StringComparer.Ordinal)) { this.Logger.LogWarning($"Assistant {sourceType} callback tried to update non-writeable prop '{propName}' on component '{GetComponentName(component)}'. The value is ignored."); diff --git a/app/MindWork AI Studio/Assistants/Dynamic/WebContentState.cs b/app/MindWork AI Studio/Assistants/Dynamic/WebContentState.cs index 93a4b5e36..490862594 100644 --- a/app/MindWork AI Studio/Assistants/Dynamic/WebContentState.cs +++ b/app/MindWork AI Studio/Assistants/Dynamic/WebContentState.cs @@ -5,6 +5,6 @@ public sealed class WebContentState public string Content { get; set; } = string.Empty; public string URL { get; set; } = string.Empty; public bool Preselect { get; set; } - public bool PreselectContentCleanerAgent { get; set; } - public bool AgentIsRunning { get; set; } + public bool PreselectContentCleaner { get; set; } + public bool CleanerIsRunning { get; set; } } \ No newline at end of file diff --git a/app/MindWork AI Studio/Assistants/I18N/allTexts.lua b/app/MindWork AI Studio/Assistants/I18N/allTexts.lua index 4219a65a5..0f0232d6b 100644 --- a/app/MindWork AI Studio/Assistants/I18N/allTexts.lua +++ b/app/MindWork AI Studio/Assistants/I18N/allTexts.lua @@ -10346,172 +10346,172 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SELECTFILE::T1984243691::INFORMAL"] = "Yo UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SELECTFILE::T4285779702"] = "Choose File" -- External Assistants rated below this audit level are treated as insufficiently reviewed. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1162151451"] = "External Assistants rated below this audit level are treated as insufficiently reviewed." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1162151451"] = "External Assistants rated below this audit level are treated as insufficiently reviewed." -- Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1707650617"] = "Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1707650617"] = "Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing." -- Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1707650617::INFORMAL"] = "Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1707650617::INFORMAL"] = "Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing." -- Users may still activate plugins below the minimum Audit-Level -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1840342259"] = "Users may still activate plugins below the minimum Audit-Level" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1840342259"] = "Users may still activate plugins below the minimum Audit-Level" -- Automatically audit new or updated plugins in the background? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1843401860"] = "Automatically audit new or updated plugins in the background?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1843401860"] = "Automatically audit new or updated plugins in the background?" -- Require a security audit before activating external Assistants? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2010360320"] = "Require a security audit before activating external Assistants?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2010360320"] = "Require a security audit before activating external Assistants?" -- External Assistants must be audited before activation -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2065972970"] = "External Assistants must be audited before activation" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2065972970"] = "External Assistants must be audited before activation" -- Before external assistants are activated, a model audits newly installed or updated ones for security risks. AI Studio keeps the latest audit card until the plugin manifest changes. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2081939459"] = "Before external assistants are activated, a model audits newly installed or updated ones for security risks. AI Studio keeps the latest audit card until the plugin manifest changes." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2081939459"] = "Before external assistants are activated, a model audits newly installed or updated ones for security risks. AI Studio keeps the latest audit card until the plugin manifest changes." -- AI Task: Security Audit for external Assistants -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2200966468"] = "AI Task: Security Audit for external Assistants" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2200966468"] = "AI Task: Security Audit for external Assistants" -- Block activation below the minimum Audit-Level? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T232834129"] = "Block activation below the minimum Audit-Level?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T232834129"] = "Block activation below the minimum Audit-Level?" -- Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2516645821"] = "Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2516645821"] = "Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection?" -- Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2516645821::INFORMAL"] = "Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2516645821::INFORMAL"] = "Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection?" -- Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2857321563"] = "Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2857321563"] = "Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options." -- Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2857321563::INFORMAL"] = "Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2857321563::INFORMAL"] = "Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options." -- Use the app default, otherwise the model chosen when auditing -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2888830822"] = "Use the app default, otherwise the model chosen when auditing" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2888830822"] = "Use the app default, otherwise the model chosen when auditing" -- External Assistant can be activated without an audit -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2915620630"] = "External Assistant can be activated without an audit" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2915620630"] = "External Assistant can be activated without an audit" -- The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended). -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3081698423"] = "The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended)." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3081698423"] = "The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended)." -- The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended). -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3081698423::INFORMAL"] = "The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended)." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3081698423::INFORMAL"] = "The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended)." -- Security audit is done manually by the user -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3568079552"] = "Security audit is done manually by the user" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3568079552"] = "Security audit is done manually by the user" -- Minimum required audit level -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3599539909"] = "Minimum required audit level" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3599539909"] = "Minimum required audit level" -- Security audit is automatically done in the background -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3684348859"] = "Security audit is automatically done in the background" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3684348859"] = "Security audit is automatically done in the background" -- Disable Assistant Audit Protection -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T4019550023"] = "Disable Assistant Audit Protection" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T4019550023"] = "Disable Assistant Audit Protection" -- Activation is blocked below the minimum Audit-Level -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T4041192469"] = "Activation is blocked below the minimum Audit-Level" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T4041192469"] = "Activation is blocked below the minimum Audit-Level" -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T1210631144"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T1210631144"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant." -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T1210631144::INFORMAL"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T1210631144::INFORMAL"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant." -- When an assistant loads content from the web, a model can clean it up: it extracts the main content, removes advertisements and other irrelevant things, and attempts to convert relative links into absolute links so that they can be used. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T1587139574"] = "When an assistant loads content from the web, a model can clean it up: it extracts the main content, removes advertisements and other irrelevant things, and attempts to convert relative links into absolute links so that they can be used." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T1587139574"] = "When an assistant loads content from the web, a model can clean it up: it extracts the main content, removes advertisements and other irrelevant things, and attempts to convert relative links into absolute links so that they can be used." -- Use the model of the assistant -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T2899245972"] = "Use the model of the assistant" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T2899245972"] = "Use the model of the assistant" -- AI Task: Text Content Cleaner -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T3478589970"] = "AI Task: Text Content Cleaner" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T3478589970"] = "AI Task: Text Content Cleaner" -- No options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T354528094"] = "No options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T354528094"] = "No options are preselected" -- Preselect text content cleaner options? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T3659087305"] = "Preselect text content cleaner options?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T3659087305"] = "Preselect text content cleaner options?" -- Options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T3875604319"] = "Options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T3875604319"] = "Options are preselected" -- AI Task: Data Source Selection -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T1227800581"] = "AI Task: Data Source Selection" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T1227800581"] = "AI Task: Data Source Selection" -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T2513220366"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T2513220366"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat." -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T2513220366::INFORMAL"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T2513220366::INFORMAL"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat." -- In classic RAG, which searches the data sources with every message, a model first selects the data sources which fit the current prompt. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T2522862914"] = "In classic RAG, which searches the data sources with every message, a model first selects the data sources which fit the current prompt." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T2522862914"] = "In classic RAG, which searches the data sources with every message, a model first selects the data sources which fit the current prompt." -- Use the model of the chat -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T3435835378"] = "Use the model of the chat" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T3435835378"] = "Use the model of the chat" -- No options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T354528094"] = "No options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T354528094"] = "No options are preselected" -- Options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T3875604319"] = "Options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T3875604319"] = "Options are preselected" -- Preselect data source selection options? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T991598424"] = "Preselect data source selection options?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T991598424"] = "Preselect data source selection options?" -- Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T1490986595"] = "Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T1490986595"] = "Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations." -- Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T1490986595::INFORMAL"] = "Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T1490986595::INFORMAL"] = "Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations." -- AI Task: Retrieval Context Validation -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T1717726852"] = "AI Task: Retrieval Context Validation" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T1717726852"] = "AI Task: Retrieval Context Validation" -- How many validations should run simultaneously? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2326205445"] = "How many validations should run simultaneously?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2326205445"] = "How many validations should run simultaneously?" -- When enabled, a model checks each retrieval context of classic RAG, whether it makes sense for the given prompt. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T240073404"] = "When enabled, a model checks each retrieval context of classic RAG, whether it makes sense for the given prompt." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T240073404"] = "When enabled, a model checks each retrieval context of classic RAG, whether it makes sense for the given prompt." -- Validate the retrieval contexts? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2428915017"] = "Validate the retrieval contexts?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2428915017"] = "Validate the retrieval contexts?" -- When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2520295642"] = "When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2520295642"] = "When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat." -- When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2520295642::INFORMAL"] = "When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2520295642::INFORMAL"] = "When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat." -- Preselect retrieval context validation options? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2663938643"] = "Preselect retrieval context validation options?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2663938643"] = "Preselect retrieval context validation options?" -- Use the model of the chat -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T3435835378"] = "Use the model of the chat" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T3435835378"] = "Use the model of the chat" -- No options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T354528094"] = "No options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T354528094"] = "No options are preselected" -- Options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T3875604319"] = "Options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T3875604319"] = "Options are preselected" -- validations -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T595734827"] = "validations" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T595734827"] = "validations" -- Each retrieval context is validated -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T705018823"] = "Each retrieval context is validated" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T705018823"] = "Each retrieval context is validated" -- In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T765642962"] = "In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T765642962"] = "In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one." -- In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T765642962::INFORMAL"] = "In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T765642962::INFORMAL"] = "In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one." -- No validation is performed -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T95175095"] = "No validation is performed" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T95175095"] = "No validation is performed" -- Spellchecking is disabled UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAPP::T1059411425"] = "Spellchecking is disabled" @@ -23365,11 +23365,11 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::AUGMENTATIONPROCESSES::AUGMENTATIONONE::T -- The check of which passages fit your question failed. This answer uses all passages that were found. UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::AUGMENTATIONPROCESSES::AUGMENTATIONONE::T392269104::INFORMAL"] = "The check of which passages fit your question failed. This answer uses all passages that were found." --- Automatic AI data source selection with heuristik source reduction -UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AGENTICSRCSELWITHDYNHEUR::T2339257645"] = "Automatic AI data source selection with heuristik source reduction" +-- Automatic AI data source selection with heuristic source reduction +UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AISRCSELWITHDYNHEUR::T1677447909"] = "Automatic AI data source selection with heuristic source reduction" -- Automatically selects the appropriate data sources based on the last prompt. Applies a heuristic reduction at the end to reduce the number of data sources. -UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AGENTICSRCSELWITHDYNHEUR::T648937779"] = "Automatically selects the appropriate data sources based on the last prompt. Applies a heuristic reduction at the end to reduce the number of data sources." +UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AISRCSELWITHDYNHEUR::T648937779"] = "Automatically selects the appropriate data sources based on the last prompt. Applies a heuristic reduction at the end to reduce the number of data sources." -- This RAG process filters data sources, automatically selects appropriate sources, optionally allows manual source selection, retrieves data, and automatically validates the retrieval context. UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::RAGPROCESSES::AISRCSELWITHRETCTXVAL::T3047786484"] = "This RAG process filters data sources, automatically selects appropriate sources, optionally allows manual source selection, retrieves data, and automatically validates the retrieval context." diff --git a/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor b/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor index dae13ce9f..36b83604c 100644 --- a/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor +++ b/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor @@ -3,13 +3,13 @@ @if (!this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader) { - + } @* Two zones, so no default target: the user has to aim at the one they mean. *@ - + - + \ No newline at end of file diff --git a/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor.cs b/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor.cs index 7a44145f7..3a1797b6b 100644 --- a/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor.cs +++ b/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor.cs @@ -30,7 +30,7 @@ public partial class AssistantLegalCheck : AssistantBaseCore SubmitAction => this.AskQuestions; - protected override bool SubmitDisabled => this.isAgentRunning; + protected override bool SubmitDisabled => this.isCleanerRunning; protected override string SendToChatVisibleUserPromptPrefix => T("Answer the following questions about a legal document:"); @@ -44,7 +44,7 @@ public partial class AssistantLegalCheck : AssistantBaseCore SHOW_WEB_CONTENT_READER_STATE_KEY = new(nameof(showWebContentReader)); - private static readonly AssistantSessionStateKey USE_CONTENT_CLEANER_AGENT_STATE_KEY = new(nameof(useContentCleanerAgent)); - private static readonly AssistantSessionStateKey IS_AGENT_RUNNING_STATE_KEY = new(nameof(isAgentRunning)); + private static readonly AssistantSessionStateKey USE_CONTENT_CLEANER_STATE_KEY = new(nameof(useContentCleaner)); + private static readonly AssistantSessionStateKey IS_CLEANER_RUNNING_STATE_KEY = new(nameof(isCleanerRunning)); private static readonly AssistantSessionStateKey WEB_CONTENT_URL_STATE_KEY = new(nameof(webContentURL)); private static readonly AssistantSessionStateKey INPUT_LEGAL_DOCUMENT_STATE_KEY = new(nameof(inputLegalDocument)); private static readonly AssistantSessionStateKey INPUT_QUESTIONS_STATE_KEY = new(nameof(inputQuestions)); @@ -77,8 +77,8 @@ public partial class AssistantLegalCheck : AssistantBaseCore this.showWebContentReader = value); - state.Restore(USE_CONTENT_CLEANER_AGENT_STATE_KEY, value => this.useContentCleanerAgent = value); - state.Restore(IS_AGENT_RUNNING_STATE_KEY, value => this.isAgentRunning = value); + state.Restore(USE_CONTENT_CLEANER_STATE_KEY, value => this.useContentCleaner = value); + state.Restore(IS_CLEANER_RUNNING_STATE_KEY, value => this.isCleanerRunning = value); state.Restore(WEB_CONTENT_URL_STATE_KEY, value => this.webContentURL = value); state.Restore(INPUT_LEGAL_DOCUMENT_STATE_KEY, value => this.inputLegalDocument = value); state.Restore(INPUT_QUESTIONS_STATE_KEY, value => this.inputQuestions = value); diff --git a/app/MindWork AI Studio/Assistants/SWOTAnalysis/AssistantSWOTAnalysis.razor b/app/MindWork AI Studio/Assistants/SWOTAnalysis/AssistantSWOTAnalysis.razor index 4b7d63cb1..c25c7ac5b 100644 --- a/app/MindWork AI Studio/Assistants/SWOTAnalysis/AssistantSWOTAnalysis.razor +++ b/app/MindWork AI Studio/Assistants/SWOTAnalysis/AssistantSWOTAnalysis.razor @@ -9,20 +9,20 @@ @if (!this.SettingsManager.ConfigurationData.SWOTAnalysis.HideWebContentReader) { - + } @T("Input") - + @T("Analysis Options") - + - + diff --git a/app/MindWork AI Studio/Assistants/SWOTAnalysis/AssistantSWOTAnalysis.razor.cs b/app/MindWork AI Studio/Assistants/SWOTAnalysis/AssistantSWOTAnalysis.razor.cs index 4ecd44fc8..ea8992679 100644 --- a/app/MindWork AI Studio/Assistants/SWOTAnalysis/AssistantSWOTAnalysis.razor.cs +++ b/app/MindWork AI Studio/Assistants/SWOTAnalysis/AssistantSWOTAnalysis.razor.cs @@ -34,7 +34,7 @@ public partial class AssistantSWOTAnalysis : AssistantBaseCore SubmitAction => this.AnalyzeText; - protected override bool SubmitDisabled => this.isAgentRunning; + protected override bool SubmitDisabled => this.isCleanerRunning; protected override string SendToChatVisibleUserPromptText => T("Create a SWOT analysis of my content"); @@ -53,7 +53,7 @@ public partial class AssistantSWOTAnalysis : AssistantBaseCore contextMaterials = []; - private bool isAgentRunning; + private bool isCleanerRunning; private CommonLanguages selectedTargetLanguage = CommonLanguages.AS_IS; private string customTargetLanguage = string.Empty; private SwotAnalysisResult? analysisResult; @@ -103,13 +103,13 @@ public partial class AssistantSWOTAnalysis : AssistantBaseCore this.selectedTargetLanguage.PromptGeneralPurpose(this.customTargetLanguage); private static readonly AssistantSessionStateKey SHOW_WEB_CONTENT_READER_STATE_KEY = new(nameof(showWebContentReader)); - private static readonly AssistantSessionStateKey USE_CONTENT_CLEANER_AGENT_STATE_KEY = new(nameof(useContentCleanerAgent)); + private static readonly AssistantSessionStateKey USE_CONTENT_CLEANER_STATE_KEY = new(nameof(useContentCleaner)); private static readonly AssistantSessionStateKey WEB_CONTENT_URL_STATE_KEY = new(nameof(webContentURL)); private static readonly AssistantSessionStateKey INPUT_TEXT_STATE_KEY = new(nameof(inputText)); private static readonly AssistantSessionStateKey ANALYSIS_GOAL_STATE_KEY = new(nameof(analysisGoal)); private static readonly AssistantSessionStateKey IMPORTANT_ASPECTS_STATE_KEY = new(nameof(importantAspects)); private static readonly AssistantSessionStateKey> CONTEXT_MATERIALS_STATE_KEY = new(nameof(contextMaterials)); - private static readonly AssistantSessionStateKey IS_AGENT_RUNNING_STATE_KEY = new(nameof(isAgentRunning)); + private static readonly AssistantSessionStateKey IS_CLEANER_RUNNING_STATE_KEY = new(nameof(isCleanerRunning)); private static readonly AssistantSessionStateKey SELECTED_TARGET_LANGUAGE_STATE_KEY = new(nameof(selectedTargetLanguage)); private static readonly AssistantSessionStateKey CUSTOM_TARGET_LANGUAGE_STATE_KEY = new(nameof(customTargetLanguage)); private static readonly AssistantSessionStateKey ANALYSIS_RESULT_STATE_KEY = new(nameof(analysisResult)); @@ -123,13 +123,13 @@ public partial class AssistantSWOTAnalysis : AssistantBaseCore this.showWebContentReader = value); - state.Restore(USE_CONTENT_CLEANER_AGENT_STATE_KEY, value => this.useContentCleanerAgent = value); + state.Restore(USE_CONTENT_CLEANER_STATE_KEY, value => this.useContentCleaner = value); state.Restore(WEB_CONTENT_URL_STATE_KEY, value => this.webContentURL = value); state.Restore(INPUT_TEXT_STATE_KEY, value => this.inputText = value); state.Restore(ANALYSIS_GOAL_STATE_KEY, value => this.analysisGoal = value); state.Restore(IMPORTANT_ASPECTS_STATE_KEY, value => this.importantAspects = value); state.RestoreHashSet(CONTEXT_MATERIALS_STATE_KEY, this.contextMaterials); - state.Restore(IS_AGENT_RUNNING_STATE_KEY, value => this.isAgentRunning = value); + state.Restore(IS_CLEANER_RUNNING_STATE_KEY, value => this.isCleanerRunning = value); state.Restore(SELECTED_TARGET_LANGUAGE_STATE_KEY, value => this.selectedTargetLanguage = value); state.Restore(CUSTOM_TARGET_LANGUAGE_STATE_KEY, value => this.customTargetLanguage = value); state.Restore(ANALYSIS_RESULT_STATE_KEY, value => this.analysisResult = value); diff --git a/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor b/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor index 61f75ba22..48defb37f 100644 --- a/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor +++ b/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor @@ -3,11 +3,11 @@ @if (!this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader) { - + } - + diff --git a/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor.cs b/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor.cs index a72faa8ad..d28b46f99 100644 --- a/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor.cs +++ b/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor.cs @@ -50,7 +50,7 @@ public partial class AssistantTextSummarizer : AssistantBaseCore SubmitAction => this.SummarizeText; - protected override bool SubmitDisabled => this.isAgentRunning; + protected override bool SubmitDisabled => this.isCleanerRunning; protected override string SendToChatVisibleUserPromptText => T("Create a summary of my text"); @@ -61,7 +61,7 @@ public partial class AssistantTextSummarizer : AssistantBaseCore SHOW_WEB_CONTENT_READER_STATE_KEY = new(nameof(showWebContentReader)); - private static readonly AssistantSessionStateKey USE_CONTENT_CLEANER_AGENT_STATE_KEY = new(nameof(useContentCleanerAgent)); + private static readonly AssistantSessionStateKey USE_CONTENT_CLEANER_STATE_KEY = new(nameof(useContentCleaner)); private static readonly AssistantSessionStateKey WEB_CONTENT_URL_STATE_KEY = new(nameof(webContentURL)); private static readonly AssistantSessionStateKey INPUT_TEXT_STATE_KEY = new(nameof(inputText)); - private static readonly AssistantSessionStateKey IS_AGENT_RUNNING_STATE_KEY = new(nameof(isAgentRunning)); + private static readonly AssistantSessionStateKey IS_CLEANER_RUNNING_STATE_KEY = new(nameof(isCleanerRunning)); private static readonly AssistantSessionStateKey SELECTED_TARGET_LANGUAGE_STATE_KEY = new(nameof(selectedTargetLanguage)); private static readonly AssistantSessionStateKey CUSTOM_TARGET_LANGUAGE_STATE_KEY = new(nameof(customTargetLanguage)); private static readonly AssistantSessionStateKey SELECTED_COMPLEXITY_STATE_KEY = new(nameof(selectedComplexity)); @@ -112,10 +112,10 @@ public partial class AssistantTextSummarizer : AssistantBaseCore this.showWebContentReader = value); - state.Restore(USE_CONTENT_CLEANER_AGENT_STATE_KEY, value => this.useContentCleanerAgent = value); + state.Restore(USE_CONTENT_CLEANER_STATE_KEY, value => this.useContentCleaner = value); state.Restore(WEB_CONTENT_URL_STATE_KEY, value => this.webContentURL = value); state.Restore(INPUT_TEXT_STATE_KEY, value => this.inputText = value); - state.Restore(IS_AGENT_RUNNING_STATE_KEY, value => this.isAgentRunning = value); + state.Restore(IS_CLEANER_RUNNING_STATE_KEY, value => this.isCleanerRunning = value); state.Restore(SELECTED_TARGET_LANGUAGE_STATE_KEY, value => this.selectedTargetLanguage = value); state.Restore(CUSTOM_TARGET_LANGUAGE_STATE_KEY, value => this.customTargetLanguage = value); state.Restore(SELECTED_COMPLEXITY_STATE_KEY, value => this.selectedComplexity = value); diff --git a/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor b/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor index 10d9870b5..05b14d96b 100644 --- a/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor +++ b/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor @@ -3,7 +3,7 @@ @if (!this.SettingsManager.ConfigurationData.Translation.HideWebContentReader) { - + } @@ -11,12 +11,12 @@ @if (this.liveTranslation) { - + } else { @* Bound by its value, the field shows no issue before you type, also when you switch the live translation off. It checks your text again shortly after you stop typing, see TextFieldDefaults: *@ - + } diff --git a/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor.cs b/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor.cs index ec4534916..ac06c41a7 100644 --- a/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor.cs +++ b/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor.cs @@ -56,7 +56,7 @@ public partial class AssistantTranslation : AssistantBaseCore SubmitAction => () => this.TranslateText(true); - protected override bool SubmitDisabled => this.isAgentRunning; + protected override bool SubmitDisabled => this.isCleanerRunning; protected override string SendToChatVisibleUserPromptText => $""" @@ -73,7 +73,7 @@ public partial class AssistantTranslation : AssistantBaseCore SHOW_WEB_CONTENT_READER_STATE_KEY = new(nameof(showWebContentReader)); - private static readonly AssistantSessionStateKey USE_CONTENT_CLEANER_AGENT_STATE_KEY = new(nameof(useContentCleanerAgent)); + private static readonly AssistantSessionStateKey USE_CONTENT_CLEANER_STATE_KEY = new(nameof(useContentCleaner)); private static readonly AssistantSessionStateKey LIVE_TRANSLATION_STATE_KEY = new(nameof(liveTranslation)); - private static readonly AssistantSessionStateKey IS_AGENT_RUNNING_STATE_KEY = new(nameof(isAgentRunning)); + private static readonly AssistantSessionStateKey IS_CLEANER_RUNNING_STATE_KEY = new(nameof(isCleanerRunning)); private static readonly AssistantSessionStateKey WEB_CONTENT_URL_STATE_KEY = new(nameof(webContentURL)); private static readonly AssistantSessionStateKey INPUT_TEXT_STATE_KEY = new(nameof(inputText)); private static readonly AssistantSessionStateKey INPUT_TEXT_LAST_TRANSLATION_STATE_KEY = new(nameof(inputTextLastTranslation)); @@ -118,9 +118,9 @@ public partial class AssistantTranslation : AssistantBaseCore this.showWebContentReader = value); - state.Restore(USE_CONTENT_CLEANER_AGENT_STATE_KEY, value => this.useContentCleanerAgent = value); + state.Restore(USE_CONTENT_CLEANER_STATE_KEY, value => this.useContentCleaner = value); state.Restore(LIVE_TRANSLATION_STATE_KEY, value => this.liveTranslation = value); - state.Restore(IS_AGENT_RUNNING_STATE_KEY, value => this.isAgentRunning = value); + state.Restore(IS_CLEANER_RUNNING_STATE_KEY, value => this.isCleanerRunning = value); state.Restore(WEB_CONTENT_URL_STATE_KEY, value => this.webContentURL = value); state.Restore(INPUT_TEXT_STATE_KEY, value => this.inputText = value); state.Restore(INPUT_TEXT_LAST_TRANSLATION_STATE_KEY, value => this.inputTextLastTranslation = value); diff --git a/app/MindWork AI Studio/Chat/ChatThread.cs b/app/MindWork AI Studio/Chat/ChatThread.cs index 6d68f9e96..73f16a417 100644 --- a/app/MindWork AI Studio/Chat/ChatThread.cs +++ b/app/MindWork AI Studio/Chat/ChatThread.cs @@ -99,7 +99,7 @@ public sealed record ChatThread /// /// The AI-selected data sources for this chat thread. /// - public IReadOnlyList AISelectedDataSources { get; set; } = []; + public IReadOnlyList AISelectedDataSources { get; set; } = []; /// /// The augmented data for this chat thread. Will be inserted into the system prompt. diff --git a/app/MindWork AI Studio/Components/ChatComponent.razor b/app/MindWork AI Studio/Components/ChatComponent.razor index 91791ecde..d4c150258 100644 --- a/app/MindWork AI Studio/Components/ChatComponent.razor +++ b/app/MindWork AI Studio/Components/ChatComponent.razor @@ -155,7 +155,7 @@ @if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager)) { - + } @if (this.SettingsManager.ConfigurationData.Confidence.ShowProviderConfidence) diff --git a/app/MindWork AI Studio/Components/ChatComponent.razor.cs b/app/MindWork AI Studio/Components/ChatComponent.razor.cs index a7cb1f91b..9676b38f6 100644 --- a/app/MindWork AI Studio/Components/ChatComponent.razor.cs +++ b/app/MindWork AI Studio/Components/ChatComponent.razor.cs @@ -1247,7 +1247,7 @@ public partial class ChatComponent : MSGComponentBase await this.ApplyUpdatedAutomaticDataSourceOptionsAfterConfigurationChange(); } - private IReadOnlyList GetAgentSelectedDataSources() + private IReadOnlyList GetAISelectedDataSources() { if (this.ChatThread is null) return []; diff --git a/app/MindWork AI Studio/Components/DataSourceAgentSelected.cs b/app/MindWork AI Studio/Components/DataSourceAISelected.cs similarity index 93% rename from app/MindWork AI Studio/Components/DataSourceAgentSelected.cs rename to app/MindWork AI Studio/Components/DataSourceAISelected.cs index 3acbf1d1d..1d0ffde23 100644 --- a/app/MindWork AI Studio/Components/DataSourceAgentSelected.cs +++ b/app/MindWork AI Studio/Components/DataSourceAISelected.cs @@ -6,7 +6,7 @@ namespace AIStudio.Components; /// /// A data structure to combine the data source and the underlying AI decision. /// -public sealed class DataSourceAgentSelected +public sealed class DataSourceAISelected { /// /// The data source. diff --git a/app/MindWork AI Studio/Components/DataSourceSelection.razor b/app/MindWork AI Studio/Components/DataSourceSelection.razor index 0cfc34e5e..95171506f 100644 --- a/app/MindWork AI Studio/Components/DataSourceSelection.razor +++ b/app/MindWork AI Studio/Components/DataSourceSelection.razor @@ -76,7 +76,7 @@ } @* With Semantic Search, no AI operation takes part: nothing would validate the retrieved data. *@ - @if (this.AllowsAutomaticSelection && this.SettingsManager.ConfigurationData.AgentRetrievalContextValidation.EnableRetrievalContextValidation && !this.IsSemanticSearchEffective) + @if (this.AllowsAutomaticSelection && this.SettingsManager.ConfigurationData.RetrievalContextValidation.EnableRetrievalContextValidation && !this.IsSemanticSearchEffective) { } @@ -137,7 +137,7 @@ @if (!this.IsSemanticSearchEffective && this.DataSourcesAISelected.Count > 0) { - + @foreach (var source in this.DataSourcesAISelected) { diff --git a/app/MindWork AI Studio/Components/DataSourceSelection.razor.cs b/app/MindWork AI Studio/Components/DataSourceSelection.razor.cs index 2c8cc960a..fba648422 100644 --- a/app/MindWork AI Studio/Components/DataSourceSelection.razor.cs +++ b/app/MindWork AI Studio/Components/DataSourceSelection.razor.cs @@ -29,7 +29,7 @@ public partial class DataSourceSelection : MSGComponentBase public EventCallback DataSourceOptionsChanged { get; set; } [Parameter] - public IReadOnlyList DataSourcesAISelected { get; set; } = []; + public IReadOnlyList DataSourcesAISelected { get; set; } = []; [Parameter] public string ConfigurationHeaderMessage { get; set; } = string.Empty; @@ -230,13 +230,13 @@ public partial class DataSourceSelection : MSGComponentBase private SelectionMode GetListSelectionMode() => this.aiBasedSourceSelection ? MudBlazor.SelectionMode.SingleSelection : MudBlazor.SelectionMode.MultiSelection; - private IReadOnlyCollection GetSelectedDataSourcesWithAI() => this.DataSourcesAISelected.Where(n => n.Selected).ToList(); + private IReadOnlyCollection GetSelectedDataSourcesWithAI() => this.DataSourcesAISelected.Where(n => n.Selected).ToList(); - private string GetAIReasoning(DataSourceAgentSelected source) => $"AI reasoning (confidence {source.AIDecision.Confidence:P0}): {source.AIDecision.Reason}"; + private string GetAIReasoning(DataSourceAISelected source) => $"AI reasoning (confidence {source.AIDecision.Confidence:P0}): {source.AIDecision.Reason}"; private string GetConfidenceIconStyle(IInternalDataSource source) => $"{source.ConfidenceLevel.SetColorStyle(this.SettingsManager)} flex-shrink: 0;"; - public void ChangeOptionWithoutSaving(DataSourceOptions options, IReadOnlyList? aiSelectedDataSources = null) + public void ChangeOptionWithoutSaving(DataSourceOptions options, IReadOnlyList? aiSelectedDataSources = null) { this.DataSourceOptions = options; this.DataSourcesAISelected = aiSelectedDataSources ?? []; @@ -561,7 +561,7 @@ public partial class DataSourceSelection : MSGComponentBase switch (triggeredEvent) { case Event.RAG_AUTO_DATA_SOURCES_SELECTED: - if(data is IReadOnlyList aiSelectedDataSources) + if(data is IReadOnlyList aiSelectedDataSources) this.DataSourcesAISelected = aiSelectedDataSources; this.StateHasChanged(); diff --git a/app/MindWork AI Studio/Components/ReadWebContent.razor b/app/MindWork AI Studio/Components/ReadWebContent.razor index d93508696..085abad07 100644 --- a/app/MindWork AI Studio/Components/ReadWebContent.razor +++ b/app/MindWork AI Studio/Components/ReadWebContent.razor @@ -1,9 +1,9 @@ @inherits MSGComponentBase - + @if (this.Preselect) { - + @if (this.ContentCleanerHint is { } contentCleanerHint) { @@ -11,12 +11,12 @@ } - - @if (this.AgentIsRunning) + @if (this.CleanerIsRunning) { } diff --git a/app/MindWork AI Studio/Components/ReadWebContent.razor.cs b/app/MindWork AI Studio/Components/ReadWebContent.razor.cs index 5151a3094..46f7b08ea 100644 --- a/app/MindWork AI Studio/Components/ReadWebContent.razor.cs +++ b/app/MindWork AI Studio/Components/ReadWebContent.razor.cs @@ -58,10 +58,10 @@ public partial class ReadWebContent : MSGComponentBase public AIStudio.Settings.Provider ProviderSettings { get; set; } = AIStudio.Settings.Provider.NONE; [Parameter] - public bool AgentIsRunning { get; set; } + public bool CleanerIsRunning { get; set; } [Parameter] - public EventCallback AgentIsRunningChanged { get; set; } + public EventCallback CleanerIsRunningChanged { get; set; } [Parameter] public bool Preselect { get; set; } @@ -70,10 +70,10 @@ public partial class ReadWebContent : MSGComponentBase public EventCallback PreselectChanged { get; set; } [Parameter] - public bool PreselectContentCleanerAgent { get; set; } + public bool PreselectContentCleaner { get; set; } [Parameter] - public EventCallback PreselectContentCleanerAgentChanged { get; set; } + public EventCallback PreselectContentCleanerChanged { get; set; } private readonly Process process = Process.INSTANCE; private ProcessStepValue processStep; @@ -183,7 +183,7 @@ public partial class ReadWebContent : MSGComponentBase markdown = retrievedPage.ExtractedPage.Markdown; markdown = await this.PromptInjectionGuardService.SanitizeAsync(markdown, PromptInjectionSource.WebContent(this.URL)); - if (this.PreselectContentCleanerAgent) + if (this.PreselectContentCleaner) { var request = new TextContentCleaningRequest(markdown, this.URL); var choice = this.ProviderResolver.Resolve(this.TextContentCleaning, request, TextContentCleaningOperation.GetProviderSettings(this.SettingsManager), GetCleanerProviderOptions(this.SettingsManager, this.ProviderSettings)); @@ -199,8 +199,8 @@ public partial class ReadWebContent : MSGComponentBase else { this.processStep = this.process[ReadWebContentSteps.CLEANING]; - this.AgentIsRunning = true; - await this.AgentIsRunningChanged.InvokeAsync(this.AgentIsRunning); + this.CleanerIsRunning = true; + await this.CleanerIsRunningChanged.InvokeAsync(this.CleanerIsRunning); this.StateHasChanged(); var result = await this.TextContentCleaning.RunAsync(request, new(choice.Provider)); @@ -209,19 +209,19 @@ public partial class ReadWebContent : MSGComponentBase await this.MessageBus.SendWarning(new(AppIcons.AI_OPERATION, T("The content was loaded, but not cleaned: the model of the content cleaner gave no answer."))); this.processStep = this.process[ReadWebContentSteps.DONE]; - this.AgentIsRunning = false; - await this.AgentIsRunningChanged.InvokeAsync(this.AgentIsRunning); + this.CleanerIsRunning = false; + await this.CleanerIsRunningChanged.InvokeAsync(this.CleanerIsRunning); this.StateHasChanged(); } } } catch (Exception exception) { - if (this.AgentIsRunning) + if (this.CleanerIsRunning) { this.processStep = this.process[ReadWebContentSteps.START]; - this.AgentIsRunning = false; - await this.AgentIsRunningChanged.InvokeAsync(this.AgentIsRunning); + this.CleanerIsRunning = false; + await this.CleanerIsRunningChanged.InvokeAsync(this.CleanerIsRunning); this.StateHasChanged(); } @@ -269,9 +269,9 @@ public partial class ReadWebContent : MSGComponentBase await this.PreselectChanged.InvokeAsync(state); } - private async Task UseContentCleanerAgentChanged(bool state) + private async Task UseContentCleanerChanged(bool state) { - await this.PreselectContentCleanerAgentChanged.InvokeAsync(state); + await this.PreselectContentCleanerChanged.InvokeAsync(state); } /// @@ -290,7 +290,7 @@ public partial class ReadWebContent : MSGComponentBase { get { - if(!this.PreselectContentCleanerAgent || this.cleanerChoice.HasProvider) + if(!this.PreselectContentCleaner || this.cleanerChoice.HasProvider) return null; return this.cleanerChoice.FallbackIssue switch diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentAssistantAudit.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskAssistantAudit.razor similarity index 84% rename from app/MindWork AI Studio/Components/Settings/SettingsPanelAgentAssistantAudit.razor rename to app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskAssistantAudit.razor index 19ea2446c..450a9f70a 100644 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentAssistantAudit.razor +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskAssistantAudit.razor @@ -8,7 +8,7 @@ - + diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentAssistantAudit.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskAssistantAudit.razor.cs similarity index 96% rename from app/MindWork AI Studio/Components/Settings/SettingsPanelAgentAssistantAudit.razor.cs rename to app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskAssistantAudit.razor.cs index af08ee527..bf2f5916b 100644 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentAssistantAudit.razor.cs +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskAssistantAudit.razor.cs @@ -7,7 +7,7 @@ using DialogOptions = AIStudio.Dialogs.DialogOptions; namespace AIStudio.Components.Settings; -public partial class SettingsPanelAgentAssistantAudit : SettingsPanelBase +public partial class SettingsPanelAITaskAssistantAudit : SettingsPanelBase { [Inject] private AssistantPluginAuditService AssistantPluginAuditService { get; init; } = null!; diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskContentCleaner.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskContentCleaner.razor new file mode 100644 index 000000000..bdb2a4809 --- /dev/null +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskContentCleaner.razor @@ -0,0 +1,13 @@ +@using AIStudio.Settings +@inherits SettingsPanelBase + + + + + @T("When an assistant loads content from the web, a model can clean it up: it extracts the main content, removes advertisements and other irrelevant things, and attempts to convert relative links into absolute links so that they can be used.") + + + + + + \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskContentCleaner.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskContentCleaner.razor.cs new file mode 100644 index 000000000..816c41871 --- /dev/null +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskContentCleaner.razor.cs @@ -0,0 +1,3 @@ +namespace AIStudio.Components.Settings; + +public partial class SettingsPanelAITaskContentCleaner : SettingsPanelBase; \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskDataSourceSelection.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskDataSourceSelection.razor new file mode 100644 index 000000000..14c6f6618 --- /dev/null +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskDataSourceSelection.razor @@ -0,0 +1,13 @@ +@using AIStudio.Settings +@inherits SettingsPanelBase + + + + + @T("In classic RAG, which searches the data sources with every message, a model first selects the data sources which fit the current prompt.") + + + + + + \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskDataSourceSelection.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskDataSourceSelection.razor.cs new file mode 100644 index 000000000..cb1d192b6 --- /dev/null +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskDataSourceSelection.razor.cs @@ -0,0 +1,3 @@ +namespace AIStudio.Components.Settings; + +public partial class SettingsPanelAITaskDataSourceSelection : SettingsPanelBase; \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskRetrievalContextValidation.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskRetrievalContextValidation.razor new file mode 100644 index 000000000..3664c0e22 --- /dev/null +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskRetrievalContextValidation.razor @@ -0,0 +1,18 @@ +@using AIStudio.Settings +@inherits SettingsPanelBase + + + + @TA("In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one.") + + + @if (this.SettingsManager.ConfigurationData.RetrievalContextValidation.EnableRetrievalContextValidation) + { + + + + + + + } + \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskRetrievalContextValidation.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskRetrievalContextValidation.razor.cs new file mode 100644 index 000000000..a4187f440 --- /dev/null +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelAITaskRetrievalContextValidation.razor.cs @@ -0,0 +1,3 @@ +namespace AIStudio.Components.Settings; + +public partial class SettingsPanelAITaskRetrievalContextValidation : SettingsPanelBase; \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentContentCleaner.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentContentCleaner.razor deleted file mode 100644 index 68d155269..000000000 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentContentCleaner.razor +++ /dev/null @@ -1,13 +0,0 @@ -@using AIStudio.Settings -@inherits SettingsPanelBase - - - - - @T("When an assistant loads content from the web, a model can clean it up: it extracts the main content, removes advertisements and other irrelevant things, and attempts to convert relative links into absolute links so that they can be used.") - - - - - - \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentContentCleaner.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentContentCleaner.razor.cs deleted file mode 100644 index e588f061d..000000000 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentContentCleaner.razor.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace AIStudio.Components.Settings; - -public partial class SettingsPanelAgentContentCleaner : SettingsPanelBase; \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentDataSourceSelection.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentDataSourceSelection.razor deleted file mode 100644 index 949ccead2..000000000 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentDataSourceSelection.razor +++ /dev/null @@ -1,13 +0,0 @@ -@using AIStudio.Settings -@inherits SettingsPanelBase - - - - - @T("In classic RAG, which searches the data sources with every message, a model first selects the data sources which fit the current prompt.") - - - - - - \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentDataSourceSelection.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentDataSourceSelection.razor.cs deleted file mode 100644 index 1c191a552..000000000 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentDataSourceSelection.razor.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace AIStudio.Components.Settings; - -public partial class SettingsPanelAgentDataSourceSelection : SettingsPanelBase; \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentRetrievalContextValidation.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentRetrievalContextValidation.razor deleted file mode 100644 index e6cde249b..000000000 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentRetrievalContextValidation.razor +++ /dev/null @@ -1,18 +0,0 @@ -@using AIStudio.Settings -@inherits SettingsPanelBase - - - - @TA("In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one.") - - - @if (this.SettingsManager.ConfigurationData.AgentRetrievalContextValidation.EnableRetrievalContextValidation) - { - - - - - - - } - \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentRetrievalContextValidation.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentRetrievalContextValidation.razor.cs deleted file mode 100644 index aaf0d9384..000000000 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelAgentRetrievalContextValidation.razor.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace AIStudio.Components.Settings; - -public partial class SettingsPanelAgentRetrievalContextValidation : SettingsPanelBase; \ No newline at end of file diff --git a/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor b/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor index 2065f46bc..527f1c096 100644 --- a/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor +++ b/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor @@ -42,7 +42,7 @@ @this.ProviderSelectionHint - + diff --git a/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogLegalCheck.razor b/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogLegalCheck.razor index ccd62e32d..b4a9aebd7 100644 --- a/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogLegalCheck.razor +++ b/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogLegalCheck.razor @@ -12,7 +12,7 @@ - + diff --git a/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogSWOTAnalysis.razor b/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogSWOTAnalysis.razor index eb7f6176d..acbaa1c1d 100644 --- a/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogSWOTAnalysis.razor +++ b/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogSWOTAnalysis.razor @@ -13,7 +13,7 @@ - + @if (this.SettingsManager.ConfigurationData.SWOTAnalysis.PreselectedTargetLanguage is CommonLanguages.OTHER) { diff --git a/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogTextSummarizer.razor b/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogTextSummarizer.razor index 1b6cde934..5c9beb571 100644 --- a/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogTextSummarizer.razor +++ b/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogTextSummarizer.razor @@ -14,7 +14,7 @@ - + @if (this.SettingsManager.ConfigurationData.TextSummarizer.PreselectedTargetLanguage is CommonLanguages.OTHER) { diff --git a/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogTranslation.razor b/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogTranslation.razor index b9c842f80..5e6d37aaf 100644 --- a/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogTranslation.razor +++ b/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogTranslation.razor @@ -13,7 +13,7 @@ - + @if (this.SettingsManager.ConfigurationData.Translation.PreselectedTargetLanguage is CommonLanguages.OTHER) diff --git a/app/MindWork AI Studio/Pages/Settings.razor b/app/MindWork AI Studio/Pages/Settings.razor index 1071937ed..b54f7ea14 100644 --- a/app/MindWork AI Studio/Pages/Settings.razor +++ b/app/MindWork AI Studio/Pages/Settings.razor @@ -31,12 +31,12 @@ @if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager)) { - - + + } - - + + diff --git a/app/MindWork AI Studio/Plugins/assistants/README.md b/app/MindWork AI Studio/Plugins/assistants/README.md index a1637045e..f46c94de0 100644 --- a/app/MindWork AI Studio/Plugins/assistants/README.md +++ b/app/MindWork AI Studio/Plugins/assistants/README.md @@ -246,8 +246,8 @@ ASSISTANT = { - A chat template may preselect tools and data sources as well. When it does, it decides them alone: the launcher `ToolIds` and `DataSourceIds` are dropped, and AI Studio writes a warning into the log naming both sides. The rule is the same for tools and for data sources, so there is only one to remember. - A chat template may also preselect a provider and a profile, and the same rule applies: they win over the launcher `ProviderId` and `ProfileId`, with a warning in the log. A provider of the template which is gone or does not meet the confidence level required for chats, and a profile of the template which is gone, are left out instead of stopping the launch; the launcher then decides as if the template named none. - A chat template may name a workspace for its chats as well. Here the launcher wins when it names a workspace of its own, because that choice was made on purpose. A launcher that opens a disappearing chat opens it in the workspace of its template instead, which is created when it does not exist yet; if that fails, the chat stays a disappearing chat. -- The reason the template wins as a whole rather than field by field is a difference in what the two can express. A launcher can only ever say "these sources, picked by hand", while a chat template carries the whole data source options and can also say "let an agent pick the sources for each message". A mix of both would be something neither of them asked for. -- The data sources of a chat template are checked exactly like the ones of a launcher: a source which no longer exists, or which is not permitted for the effective provider, stops the launch before a workspace or chat is created. The message then names the chat template as the cause, not the launcher. A template which leaves the choice to an agent names no source and is therefore not checked here; that decision is made per message in the chat. +- The reason the template wins as a whole rather than field by field is a difference in what the two can express. A launcher can only ever say "these sources, picked by hand", while a chat template carries the whole data source options and can also say "let an AI task pick the sources for each message". A mix of both would be something neither of them asked for. +- The data sources of a chat template are checked exactly like the ones of a launcher: a source which no longer exists, or which is not permitted for the effective provider, stops the launch before a workspace or chat is created. The message then names the chat template as the cause, not the launcher. A template which leaves the choice to an AI task names no source and is therefore not checked here; that decision is made per message in the chat. - The predefined user prompt and the attachments of the selected chat template are placed into the chat input, unless the user already has an unsent draft there. ### Editing a launcher in AI Studio @@ -280,7 +280,7 @@ Launchers with an own icon or extra Lua code keep the plugin code editor and the - `DATE_RANGE_PICKER`: date range input based on `MudDateRangePicker`; requires `Name`, `Label`, and may include `Value`, `Color`, `PlaceholderStart`, `PlaceholderEnd`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style`. - `TIME_PICKER`: time input based on `MudTimePicker`; requires `Name`, `Label`, and may include `Value`, `Color`, `Placeholder`, `HelperText`, `TimeFormat`, `AmPm`, `PickerVariant`, `UserPrompt`, `Class`, `Style`. - `PROVIDER_SELECTION` / `PROFILE_SELECTION`: hooks into the shared provider/profile selectors. -- `WEB_CONTENT_READER`: renders `ReadWebContent`; include `Name`, `UserPrompt`, `Preselect`, `PreselectContentCleanerAgent`. +- `WEB_CONTENT_READER`: renders `ReadWebContent`; include `Name`, `UserPrompt`, `Preselect`, `PreselectContentCleaner`. Before AI Studio v26.11.2, `PreselectContentCleaner` was called `PreselectContentCleanerAgent`. AI Studio still reads the former name, also in the props a callback returns, so existing plugins need no change; callbacks see the prop under its current name only. - `FILE_CONTENT_READER`: renders `ReadFileContent`; use it when exactly one expected file should be read and inserted into the prompt; include `Name`, and optionally `UserPrompt`, `ShowAttachedDocumentState`, `Class`, `Style`. `ShowAttachedDocumentState` defaults to `true`; set it to `false` only when the loaded-document indicator should be hidden. - `FILE_ATTACHMENTS`: renders `AttachDocuments`; use it when the assistant should accept multiple documents/images or an unpredictable number of files as context; include `Name`, and may include `Heading`, `UserPrompt`, `CatchAllDocuments`, `UseSmallForm`, `Class`, `Style`. Keep `UseSmallForm = false` by default unless compact layout is explicitly required. - **Drop zones and `CatchAllDocuments`**: `FILE_CONTENT_READER` and `FILE_ATTACHMENTS` both accept dropped files. `CatchAllDocuments` makes one of them the default target of the whole assistant, so that a file dropped anywhere in it still arrives there. That only makes sense while the assistant has exactly **one** drop zone. With several, set `CatchAllDocuments = false`: it defaults to `true` when the prop is absent, and users then have to aim at the zone they mean instead of watching their file land in a neighbouring one. AI Studio enforces the rule at runtime, so a `true` value is ignored anyway as soon as a second drop zone exists. @@ -300,7 +300,7 @@ Images referenced via the `plugin://` scheme must exist in the plugin directory | `PROFILE_SELECTION` | `None` | `None` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/ProfileSelection.razor) | | `FILE_CONTENT_READER` | `Name` | `UserPrompt`, `ShowAttachedDocumentState`, `Class`, `Style` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/ReadFileContent.razor) | | `FILE_ATTACHMENTS` | `Name` | `Heading`, `UserPrompt`, `CatchAllDocuments`, `UseSmallForm`, `Class`, `Style` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/AttachDocuments.razor) | -| `WEB_CONTENT_READER` | `Name` | `UserPrompt` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/ReadWebContent.razor) | +| `WEB_CONTENT_READER` | `Name` | `UserPrompt`, `Preselect`, `PreselectContentCleaner`, `Class`, `Style` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/ReadWebContent.razor) | | `COLOR_PICKER` | `Name`, `Label` | `Placeholder`, `Color`, `ShowAlpha`, `ShowToolbar`, `ShowModeSwitch`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudColorPicker](https://www.mudblazor.com/components/colorpicker) | | `DATE_PICKER` | `Name`, `Label` | `Value`, `Color`, `Placeholder`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudDatePicker](https://www.mudblazor.com/components/datepicker) | | `DATE_RANGE_PICKER` | `Name`, `Label` | `Value`, `Color`, `PlaceholderStart`, `PlaceholderEnd`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudDateRangePicker](https://www.mudblazor.com/components/daterangepicker) | @@ -1273,7 +1273,7 @@ LogInfo(dt.day .. "." .. dt.month .. "." .. dt.year) 2. Keep in mind that components and their properties are _**case-sensitive**_ (e.g. if you write `["Type"] = "heading"` instead of `["Type"] = "HEADING"` the component will not be registered). Always copy-paste the component from the `plugin.lua` manifest to avoid this. 3. When you expect default content (e.g., a textarea with instructions), keep `UserPrompt` but also set `PrefillText` so the user starts with a hint. 4. If you need extra explanatory text (before or after the interactive controls), use `TEXT` or `HEADING` components. -5. Keep `Preselect`/`PreselectContentCleanerAgent` flags in `WEB_CONTENT_READER` to simplify the initial UI for the user. +5. Keep `Preselect`/`PreselectContentCleaner` flags in `WEB_CONTENT_READER` to simplify the initial UI for the user. ## Useful Resources - [translation example](./examples/translation/plugin.lua) diff --git a/app/MindWork AI Studio/Plugins/assistants/plugin.lua b/app/MindWork AI Studio/Plugins/assistants/plugin.lua index d9fb7fcf9..da03bc679 100644 --- a/app/MindWork AI Studio/Plugins/assistants/plugin.lua +++ b/app/MindWork AI Studio/Plugins/assistants/plugin.lua @@ -369,7 +369,7 @@ ASSISTANT = { ["Name"] = "", -- required ["UserPrompt"] = "", ["Preselect"] = false, -- automatically show the reader when the assistant opens - ["PreselectContentCleanerAgent"] = true -- run the content cleaner by default + ["PreselectContentCleaner"] = true -- run the content cleaner by default } }, { diff --git a/app/MindWork AI Studio/Plugins/configuration/plugin.lua b/app/MindWork AI Studio/Plugins/configuration/plugin.lua index e93fb2e48..7e6142e5d 100644 --- a/app/MindWork AI Studio/Plugins/configuration/plugin.lua +++ b/app/MindWork AI Studio/Plugins/configuration/plugin.lua @@ -1616,19 +1616,25 @@ CONFIG["SETTINGS"] = {} -- CONFIG["SETTINGS"]["DataDataSourceIndexing.MinimumPauseBetweenStepsSeconds.AllowUserOverride"] = true -- CONFIG["SETTINGS"]["DataDataSourceIndexing.MaximumPauseBetweenStepsSeconds.AllowUserOverride"] = true +-- Before v26.11.2, seven of the following settings had "Agent" in their names, such as +-- "DataAgentDataSourceSelection.PreselectedAgentProvider" for "DataDataSourceSelection.PreselectedProvider". +-- AI Studio reads these former names until May 2027 and names the new one in its log. Devices with +-- v26.11.1 read only the former names: set both until every device runs v26.11.2 or newer. When a +-- plugin sets both, v26.11.2 and newer take the new name. + -- Configure the text content cleaner, an AI task. -- It removes navigation, advertisements, and other clutter from web pages which an assistant reads. -- The provider must be one of the provider IDs defined in CONFIG["LLM_PROVIDERS"]. Without one, the -- cleaner uses the provider of the assistant, and otherwise the app-wide default provider. -- The minimum confidence applies to every provider the cleaner uses, the provider of the assistant -- and the app-wide default included. The provider and the minimum confidence apply only while --- PreselectAgentOptions is true. +-- PreselectOptions is true. -- Allowed confidence values are: NONE, UNTRUSTED, UNKNOWN, VERY_LOW, LOW, MODERATE, MEDIUM, HIGH --- CONFIG["SETTINGS"]["DataTextContentCleaner.PreselectAgentOptions"] = true --- CONFIG["SETTINGS"]["DataTextContentCleaner.PreselectedAgentProvider"] = "00000000-0000-0000-0000-000000000000" +-- CONFIG["SETTINGS"]["DataTextContentCleaner.PreselectOptions"] = true +-- CONFIG["SETTINGS"]["DataTextContentCleaner.PreselectedProvider"] = "00000000-0000-0000-0000-000000000000" -- CONFIG["SETTINGS"]["DataTextContentCleaner.MinimumProviderConfidence"] = "NONE" --- CONFIG["SETTINGS"]["DataTextContentCleaner.PreselectAgentOptions.AllowUserOverride"] = true --- CONFIG["SETTINGS"]["DataTextContentCleaner.PreselectedAgentProvider.AllowUserOverride"] = true +-- CONFIG["SETTINGS"]["DataTextContentCleaner.PreselectOptions.AllowUserOverride"] = true +-- CONFIG["SETTINGS"]["DataTextContentCleaner.PreselectedProvider.AllowUserOverride"] = true -- CONFIG["SETTINGS"]["DataTextContentCleaner.MinimumProviderConfidence.AllowUserOverride"] = true -- Configure the data source selection, an AI task. @@ -1637,14 +1643,14 @@ CONFIG["SETTINGS"] = {} -- AI task uses the provider of the chat, and otherwise the app-wide default provider. -- The minimum confidence applies to every provider the AI task uses, the provider of the chat and the -- app-wide default included. The provider and the minimum confidence apply only while --- PreselectAgentOptions is true. +-- PreselectOptions is true. -- Allowed confidence values are: NONE, UNTRUSTED, UNKNOWN, VERY_LOW, LOW, MODERATE, MEDIUM, HIGH --- CONFIG["SETTINGS"]["DataAgentDataSourceSelection.PreselectAgentOptions"] = true --- CONFIG["SETTINGS"]["DataAgentDataSourceSelection.PreselectedAgentProvider"] = "00000000-0000-0000-0000-000000000000" --- CONFIG["SETTINGS"]["DataAgentDataSourceSelection.MinimumProviderConfidence"] = "NONE" --- CONFIG["SETTINGS"]["DataAgentDataSourceSelection.PreselectAgentOptions.AllowUserOverride"] = true --- CONFIG["SETTINGS"]["DataAgentDataSourceSelection.PreselectedAgentProvider.AllowUserOverride"] = true --- CONFIG["SETTINGS"]["DataAgentDataSourceSelection.MinimumProviderConfidence.AllowUserOverride"] = true +-- CONFIG["SETTINGS"]["DataDataSourceSelection.PreselectOptions"] = true +-- CONFIG["SETTINGS"]["DataDataSourceSelection.PreselectedProvider"] = "00000000-0000-0000-0000-000000000000" +-- CONFIG["SETTINGS"]["DataDataSourceSelection.MinimumProviderConfidence"] = "NONE" +-- CONFIG["SETTINGS"]["DataDataSourceSelection.PreselectOptions.AllowUserOverride"] = true +-- CONFIG["SETTINGS"]["DataDataSourceSelection.PreselectedProvider.AllowUserOverride"] = true +-- CONFIG["SETTINGS"]["DataDataSourceSelection.MinimumProviderConfidence.AllowUserOverride"] = true -- Configure the retrieval context validation, an AI task. -- It runs when retrieval context validation is enabled globally and chat data source options enable AI-based validation. @@ -1652,18 +1658,18 @@ CONFIG["SETTINGS"] = {} -- AI task uses the provider of the chat, and otherwise the app-wide default provider. -- The minimum confidence applies to every provider the AI task uses, the provider of the chat and the -- app-wide default included. The provider and the minimum confidence apply only while --- PreselectAgentOptions is true. +-- PreselectOptions is true. -- Allowed confidence values are: NONE, UNTRUSTED, UNKNOWN, VERY_LOW, LOW, MODERATE, MEDIUM, HIGH --- CONFIG["SETTINGS"]["DataAgentRetrievalContextValidation.EnableRetrievalContextValidation"] = true --- CONFIG["SETTINGS"]["DataAgentRetrievalContextValidation.PreselectAgentOptions"] = true --- CONFIG["SETTINGS"]["DataAgentRetrievalContextValidation.PreselectedAgentProvider"] = "00000000-0000-0000-0000-000000000000" --- CONFIG["SETTINGS"]["DataAgentRetrievalContextValidation.MinimumProviderConfidence"] = "NONE" --- CONFIG["SETTINGS"]["DataAgentRetrievalContextValidation.NumParallelValidations"] = 3 --- CONFIG["SETTINGS"]["DataAgentRetrievalContextValidation.EnableRetrievalContextValidation.AllowUserOverride"] = true --- CONFIG["SETTINGS"]["DataAgentRetrievalContextValidation.PreselectAgentOptions.AllowUserOverride"] = true --- CONFIG["SETTINGS"]["DataAgentRetrievalContextValidation.PreselectedAgentProvider.AllowUserOverride"] = true --- CONFIG["SETTINGS"]["DataAgentRetrievalContextValidation.MinimumProviderConfidence.AllowUserOverride"] = true --- CONFIG["SETTINGS"]["DataAgentRetrievalContextValidation.NumParallelValidations.AllowUserOverride"] = true +-- CONFIG["SETTINGS"]["DataRetrievalContextValidation.EnableRetrievalContextValidation"] = true +-- CONFIG["SETTINGS"]["DataRetrievalContextValidation.PreselectOptions"] = true +-- CONFIG["SETTINGS"]["DataRetrievalContextValidation.PreselectedProvider"] = "00000000-0000-0000-0000-000000000000" +-- CONFIG["SETTINGS"]["DataRetrievalContextValidation.MinimumProviderConfidence"] = "NONE" +-- CONFIG["SETTINGS"]["DataRetrievalContextValidation.NumParallelValidations"] = 3 +-- CONFIG["SETTINGS"]["DataRetrievalContextValidation.EnableRetrievalContextValidation.AllowUserOverride"] = true +-- CONFIG["SETTINGS"]["DataRetrievalContextValidation.PreselectOptions.AllowUserOverride"] = true +-- CONFIG["SETTINGS"]["DataRetrievalContextValidation.PreselectedProvider.AllowUserOverride"] = true +-- CONFIG["SETTINGS"]["DataRetrievalContextValidation.MinimumProviderConfidence.AllowUserOverride"] = true +-- CONFIG["SETTINGS"]["DataRetrievalContextValidation.NumParallelValidations.AllowUserOverride"] = true -- Configure the security audit of assistant plugins, an AI task. -- @@ -1673,7 +1679,7 @@ CONFIG["SETTINGS"] = {} -- Configure a dedicated provider for assistant plugin audits. -- It must be one of the provider IDs defined in CONFIG["LLM_PROVIDERS"]. -- Without a selected audit provider, AI Studio uses the app-wide default provider. --- CONFIG["SETTINGS"]["DataAssistantPluginAudit.PreselectedAgentProvider"] = "00000000-0000-0000-0000-000000000000" +-- CONFIG["SETTINGS"]["DataAssistantPluginAudit.PreselectedProvider"] = "00000000-0000-0000-0000-000000000000" -- -- Configure the minimum confidence of the provider which audits a plugin. It applies to every -- provider an audit uses, the app-wide default and the one picked in the audit dialog included. @@ -1694,7 +1700,7 @@ CONFIG["SETTINGS"] = {} -- -- Configure whether users can change assistant plugin audit settings locally. -- CONFIG["SETTINGS"]["DataAssistantPluginAudit.RequireAuditBeforeActivation.AllowUserOverride"] = false --- CONFIG["SETTINGS"]["DataAssistantPluginAudit.PreselectedAgentProvider.AllowUserOverride"] = false +-- CONFIG["SETTINGS"]["DataAssistantPluginAudit.PreselectedProvider.AllowUserOverride"] = false -- CONFIG["SETTINGS"]["DataAssistantPluginAudit.MinimumProviderConfidence.AllowUserOverride"] = false -- CONFIG["SETTINGS"]["DataAssistantPluginAudit.MinimumLevel.AllowUserOverride"] = false -- CONFIG["SETTINGS"]["DataAssistantPluginAudit.BlockActivationBelowMinimum.AllowUserOverride"] = false diff --git a/app/MindWork AI Studio/Plugins/languages/de-de-43065dbc-78d0-45b7-92be-f14c2926e2dc/plugin.lua b/app/MindWork AI Studio/Plugins/languages/de-de-43065dbc-78d0-45b7-92be-f14c2926e2dc/plugin.lua index f71593cbc..7f10fd9cb 100644 --- a/app/MindWork AI Studio/Plugins/languages/de-de-43065dbc-78d0-45b7-92be-f14c2926e2dc/plugin.lua +++ b/app/MindWork AI Studio/Plugins/languages/de-de-43065dbc-78d0-45b7-92be-f14c2926e2dc/plugin.lua @@ -10231,16 +10231,16 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READFILECONTENT::T3980535867::INFORMAL"] UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READFILECONTENT::T853724151"] = "Datei „{0}“ angehängt." -- The selected model does not meet the confidence requirements of the content cleaner. Please select another model, or configure an eligible one in the app settings. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T1028731446"] = "Das ausgewählte Modell erfüllt nicht die Vertrauensanforderungen des Agenten zur Inhaltsbereinigung. Bitte wählen Sie ein anderes Modell aus oder konfigurieren Sie ein geeignetes Modell in den App-Einstellungen." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T1028731446"] = "Das ausgewählte Modell erfüllt nicht die Vertrauensanforderungen der Inhaltsbereinigung. Bitte wählen Sie ein anderes Modell aus oder konfigurieren Sie ein geeignetes Modell in den App-Einstellungen." -- The selected model does not meet the confidence requirements of the content cleaner. Please select another model, or configure an eligible one in the app settings. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T1028731446::INFORMAL"] = "Das ausgewählte Modell erfüllt nicht die Vertrauensanforderungen des Agenten zur Inhaltsbereinigung. Bitte wähle ein anderes Modell aus oder konfiguriere ein geeignetes Modell in den App-Einstellungen." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T1028731446::INFORMAL"] = "Das ausgewählte Modell erfüllt nicht die Vertrauensanforderungen der Inhaltsbereinigung. Bitte wähle ein anderes Modell aus oder konfiguriere ein geeignetes Modell in den App-Einstellungen." -- The content cleaner uses the model of this assistant. Please select one below. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T1160768613"] = "Der Agent zur Inhaltsbereinigung verwendet das Modell dieses Assistenten. Bitte wählen Sie unten eines aus." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T1160768613"] = "Die Inhaltsbereinigung verwendet das Modell dieses Assistenten. Bitte wählen Sie unten eines aus." -- The content cleaner uses the model of this assistant. Please select one below. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T1160768613::INFORMAL"] = "Der Agent zur Inhaltsbereinigung verwendet das Modell dieses Assistenten. Bitte wähle unten eines aus." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T1160768613::INFORMAL"] = "Die Inhaltsbereinigung verwendet das Modell dieses Assistenten. Bitte wähle unten eines aus." -- The content was loaded, but not cleaned: the model of the content cleaner gave no answer. UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T1189712796"] = "Der Inhalt wurde geladen, aber nicht bereinigt: Das Modell der Inhaltsbereinigung hat keine Antwort gegeben." @@ -10303,7 +10303,7 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T3825586228::INFORMAL"] = UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T4249712357"] = "Optionen für Webinhalte anzeigen" -- The content was loaded, but not cleaned: no model is available for the content cleaner. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T903778235"] = "Der Inhalt wurde geladen, aber nicht bereinigt: Für den Agenten zur Inhaltsbereinigung ist kein Modell verfügbar." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENT::T903778235"] = "Der Inhalt wurde geladen, aber nicht bereinigt: Für die Inhaltsbereinigung ist kein Modell verfügbar." -- Loading UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::READWEBCONTENTSTEPSEXTENSIONS::T1404011351"] = "Laden" @@ -10348,172 +10348,172 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SELECTFILE::T1984243691::INFORMAL"] = "Du UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SELECTFILE::T4285779702"] = "Datei auswählen" -- External Assistants rated below this audit level are treated as insufficiently reviewed. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1162151451"] = "Externe Assistenten, die unterhalb dieser Audit-Stufe bewertet werden, gelten als nicht ausreichend geprüft." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1162151451"] = "Externe Assistenten, die unterhalb dieser Audit-Stufe bewertet werden, gelten als nicht ausreichend geprüft." -- Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1707650617"] = "Optional können Sie einen eigenen Anbieter für die Prüfung von Assistenten-Plugins auswählen. Bleibt das Feld leer, verwendet AI Studio den appweiten Standardanbieter und sonst das Modell, das Sie bei der Prüfung auswählen." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1707650617"] = "Optional können Sie einen eigenen Anbieter für die Prüfung von Assistenten-Plugins auswählen. Bleibt das Feld leer, verwendet AI Studio den appweiten Standardanbieter und sonst das Modell, das Sie bei der Prüfung auswählen." -- Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1707650617::INFORMAL"] = "Optional kannst du einen eigenen Anbieter für die Prüfung von Assistenten-Plugins auswählen. Bleibt das Feld leer, verwendet AI Studio den appweiten Standardanbieter und sonst das Modell, das du bei der Prüfung auswählst." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1707650617::INFORMAL"] = "Optional kannst du einen eigenen Anbieter für die Prüfung von Assistenten-Plugins auswählen. Bleibt das Feld leer, verwendet AI Studio den appweiten Standardanbieter und sonst das Modell, das du bei der Prüfung auswählst." -- Users may still activate plugins below the minimum Audit-Level -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1840342259"] = "Nutzer können Assistenten unterhalb der Mindest-Audit-Stufe weiterhin aktivieren." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1840342259"] = "Nutzer können Assistenten unterhalb der Mindest-Audit-Stufe weiterhin aktivieren." -- Automatically audit new or updated plugins in the background? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1843401860"] = "Neue oder aktualisierte Plugins automatisch im Hintergrund prüfen?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1843401860"] = "Neue oder aktualisierte Plugins automatisch im Hintergrund prüfen?" -- Require a security audit before activating external Assistants? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2010360320"] = "Vor dem Aktivieren externer Assistenten ein Sicherheitsaudit verlangen?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2010360320"] = "Vor dem Aktivieren externer Assistenten ein Sicherheitsaudit verlangen?" -- External Assistants must be audited before activation -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2065972970"] = "Externe Assistenten müssen vor der Aktivierung geprüft werden." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2065972970"] = "Externe Assistenten müssen vor der Aktivierung geprüft werden." -- Before external assistants are activated, a model audits newly installed or updated ones for security risks. AI Studio keeps the latest audit card until the plugin manifest changes. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2081939459"] = "Bevor externe Assistenten aktiviert werden, prüft ein Modell neu installierte oder aktualisierte Assistenten auf Sicherheitsrisiken. AI Studio speichert die neueste Audit-Karte, bis sich das Plugin-Manifest ändert." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2081939459"] = "Bevor externe Assistenten aktiviert werden, prüft ein Modell neu installierte oder aktualisierte Assistenten auf Sicherheitsrisiken. AI Studio speichert die neueste Audit-Karte, bis sich das Plugin-Manifest ändert." -- AI Task: Security Audit for external Assistants -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2200966468"] = "KI-Aufgabe: Sicherheitsprüfung für externe Assistenten" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2200966468"] = "KI-Aufgabe: Sicherheitsprüfung für externe Assistenten" -- Block activation below the minimum Audit-Level? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T232834129"] = "Aktivierung unterhalb der Mindest-Audit-Stufe blockieren?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T232834129"] = "Aktivierung unterhalb der Mindest-Audit-Stufe blockieren?" -- Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2516645821"] = "Wenn Sie diese Einstellung deaktivieren, werden die Sicherheitsprüfungen für Assistenten-Plugins ausgeschaltet. Externe Assistenten können dann auch ohne gültige Prüfung oder nach Änderungen an Plugins aktiviert und verwendet werden. Möchten Sie diesen Schutz wirklich deaktivieren?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2516645821"] = "Wenn Sie diese Einstellung deaktivieren, werden die Sicherheitsprüfungen für Assistenten-Plugins ausgeschaltet. Externe Assistenten können dann auch ohne gültige Prüfung oder nach Änderungen an Plugins aktiviert und verwendet werden. Möchten Sie diesen Schutz wirklich deaktivieren?" -- Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2516645821::INFORMAL"] = "Wenn du diese Einstellung deaktivierst, werden die Sicherheitsprüfungen für Assistenten-Plugins ausgeschaltet. Externe Assistenten können dann auch ohne gültige Prüfung oder nach Änderungen an Plugins aktiviert und verwendet werden. Möchtest du diesen Schutz wirklich deaktivieren?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2516645821::INFORMAL"] = "Wenn du diese Einstellung deaktivierst, werden die Sicherheitsprüfungen für Assistenten-Plugins ausgeschaltet. Externe Assistenten können dann auch ohne gültige Prüfung oder nach Änderungen an Plugins aktiviert und verwendet werden. Möchtest du diesen Schutz wirklich deaktivieren?" -- Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2857321563"] = "Automatische Prüfungen können nicht laufen, weil kein Modell für Sicherheitsprüfungen verfügbar ist. Wählen Sie oben eines aus oder legen Sie in den App-Einstellungen einen appweiten Standardanbieter fest." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2857321563"] = "Automatische Prüfungen können nicht laufen, weil kein Modell für Sicherheitsprüfungen verfügbar ist. Wählen Sie oben eines aus oder legen Sie in den App-Einstellungen einen appweiten Standardanbieter fest." -- Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2857321563::INFORMAL"] = "Automatische Prüfungen können nicht laufen, weil kein Modell für Sicherheitsprüfungen verfügbar ist. Wähle oben eines aus oder lege in den App-Einstellungen einen appweiten Standardanbieter fest." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2857321563::INFORMAL"] = "Automatische Prüfungen können nicht laufen, weil kein Modell für Sicherheitsprüfungen verfügbar ist. Wähle oben eines aus oder lege in den App-Einstellungen einen appweiten Standardanbieter fest." -- Use the app default, otherwise the model chosen when auditing -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2888830822"] = "App-Standard verwenden, sonst das bei der Prüfung gewählte Modell" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2888830822"] = "App-Standard verwenden, sonst das bei der Prüfung gewählte Modell" -- External Assistant can be activated without an audit -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2915620630"] = "Externer Assistent kann ohne Prüfung aktiviert werden" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2915620630"] = "Externer Assistent kann ohne Prüfung aktiviert werden" -- The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended). -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3081698423"] = "Die Überprüfung zeigt Ihnen alle Sicherheitsrisiken und Informationen. Wenn Sie diese Bewertung nach eigenem Ermessen für falsch halten, können Sie sich entscheiden, den Assistenten trotzdem zu installieren (nicht empfohlen)." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3081698423"] = "Die Überprüfung zeigt Ihnen alle Sicherheitsrisiken und Informationen. Wenn Sie diese Bewertung nach eigenem Ermessen für falsch halten, können Sie sich entscheiden, den Assistenten trotzdem zu installieren (nicht empfohlen)." -- The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended). -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3081698423::INFORMAL"] = "Die Überprüfung zeigt dir alle Sicherheitsrisiken und Informationen. Wenn du diese Bewertung nach eigenem Ermessen für falsch hältst, kannst du dich entscheiden, den Assistenten trotzdem zu installieren (nicht empfohlen)." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3081698423::INFORMAL"] = "Die Überprüfung zeigt dir alle Sicherheitsrisiken und Informationen. Wenn du diese Bewertung nach eigenem Ermessen für falsch hältst, kannst du dich entscheiden, den Assistenten trotzdem zu installieren (nicht empfohlen)." -- Security audit is done manually by the user -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3568079552"] = "Das Sicherheitsaudit wird manuell vom Benutzer durchgeführt." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3568079552"] = "Das Sicherheitsaudit wird manuell vom Benutzer durchgeführt." -- Minimum required audit level -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3599539909"] = "Minimale erforderliche Audit-Stufe" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3599539909"] = "Minimale erforderliche Audit-Stufe" -- Security audit is automatically done in the background -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3684348859"] = "Das Sicherheitsaudit wird automatisch im Hintergrund durchgeführt." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3684348859"] = "Das Sicherheitsaudit wird automatisch im Hintergrund durchgeführt." -- Disable Assistant Audit Protection -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T4019550023"] = "Assistenten-Audit-Schutz deaktivieren" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T4019550023"] = "Assistenten-Audit-Schutz deaktivieren" -- Activation is blocked below the minimum Audit-Level -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T4041192469"] = "Die Aktivierung ist unterhalb der Mindest-Audit-Stufe blockiert." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T4041192469"] = "Die Aktivierung ist unterhalb der Mindest-Audit-Stufe blockiert." -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T1210631144"] = "Wenn diese Option aktiviert ist, können Sie das Modell für diese Aufgabe und das nötige Vertrauensniveau vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Assistenten." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T1210631144"] = "Wenn diese Option aktiviert ist, können Sie das Modell für diese Aufgabe und das nötige Vertrauensniveau vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Assistenten." -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T1210631144::INFORMAL"] = "Wenn diese Option aktiviert ist, kannst du das Modell für diese Aufgabe und das nötige Vertrauensniveau vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Assistenten." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T1210631144::INFORMAL"] = "Wenn diese Option aktiviert ist, kannst du das Modell für diese Aufgabe und das nötige Vertrauensniveau vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Assistenten." -- When an assistant loads content from the web, a model can clean it up: it extracts the main content, removes advertisements and other irrelevant things, and attempts to convert relative links into absolute links so that they can be used. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T1587139574"] = "Wenn ein Assistent Inhalte aus dem Internet lädt, kann ein Modell sie bereinigen: Es extrahiert den Hauptinhalt, entfernt Werbung und andere irrelevante Elemente und versucht, relative Links in absolute Links umzuwandeln, damit sie verwendet werden können." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T1587139574"] = "Wenn ein Assistent Inhalte aus dem Internet lädt, kann ein Modell sie bereinigen: Es extrahiert den Hauptinhalt, entfernt Werbung und andere irrelevante Elemente und versucht, relative Links in absolute Links umzuwandeln, damit sie verwendet werden können." -- Use the model of the assistant -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T2899245972"] = "Modell des Assistenten verwenden" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T2899245972"] = "Modell des Assistenten verwenden" -- AI Task: Text Content Cleaner -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T3478589970"] = "KI-Aufgabe: Inhaltsbereinigung" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T3478589970"] = "KI-Aufgabe: Inhaltsbereinigung" -- No options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T354528094"] = "Es sind keine Optionen vorausgewählt" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T354528094"] = "Es sind keine Optionen vorausgewählt" -- Preselect text content cleaner options? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T3659087305"] = "Optionen des Agenten zur Inhaltsbereinigung vorauswählen?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T3659087305"] = "Optionen für die Inhaltsbereinigung vorauswählen?" -- Options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T3875604319"] = "Optionen sind vorausgewählt" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T3875604319"] = "Optionen sind vorausgewählt" -- AI Task: Data Source Selection -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T1227800581"] = "KI-Aufgabe: Wahl der Datenquellen" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T1227800581"] = "KI-Aufgabe: Wahl der Datenquellen" -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T2513220366"] = "Wenn diese Option aktiviert ist, können Sie das Modell für diese Aufgabe und das nötige Vertrauensniveau vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Chats." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T2513220366"] = "Wenn diese Option aktiviert ist, können Sie das Modell für diese Aufgabe und das nötige Vertrauensniveau vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Chats." -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T2513220366::INFORMAL"] = "Wenn diese Option aktiviert ist, kannst du das Modell für diese Aufgabe und das nötige Vertrauensniveau vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Chats." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T2513220366::INFORMAL"] = "Wenn diese Option aktiviert ist, kannst du das Modell für diese Aufgabe und das nötige Vertrauensniveau vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Chats." -- In classic RAG, which searches the data sources with every message, a model first selects the data sources which fit the current prompt. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T2522862914"] = "Beim klassischen RAG, das die Datenquellen bei jeder Nachricht durchsucht, wählt ein Modell zuerst die Datenquellen aus, die zum aktuellen Prompt passen." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T2522862914"] = "Beim klassischen RAG, das die Datenquellen bei jeder Nachricht durchsucht, wählt ein Modell zuerst die Datenquellen aus, die zum aktuellen Prompt passen." -- Use the model of the chat -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T3435835378"] = "Modell des Chats verwenden" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T3435835378"] = "Modell des Chats verwenden" -- No options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T354528094"] = "Es sind keine Optionen vorausgewählt" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T354528094"] = "Es sind keine Optionen vorausgewählt" -- Options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T3875604319"] = "Optionen sind vorausgewählt" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T3875604319"] = "Optionen sind vorausgewählt" -- Preselect data source selection options? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T991598424"] = "Datenquellen-Auswahloptionen vorauswählen?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T991598424"] = "Datenquellen-Auswahloptionen vorauswählen?" -- Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T1490986595"] = "Jede Validierung ist eine eigene Anfrage. Mehr gleichzeitige Validierungen bedeuten also entsprechend viele gleichzeitige Anfragen. Einige Anbieter begrenzen die Anzahl der Anfragen pro Minute. Wenn Sie unsicher sind, wählen Sie eine niedrige Einstellung zwischen 1 und 6 Validierungen." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T1490986595"] = "Jede Validierung ist eine eigene Anfrage. Mehr gleichzeitige Validierungen bedeuten also entsprechend viele gleichzeitige Anfragen. Einige Anbieter begrenzen die Anzahl der Anfragen pro Minute. Wenn Sie unsicher sind, wählen Sie eine niedrige Einstellung zwischen 1 und 6 Validierungen." -- Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T1490986595::INFORMAL"] = "Jede Validierung ist eine eigene Anfrage. Mehr gleichzeitige Validierungen bedeuten also entsprechend viele gleichzeitige Anfragen. Einige Anbieter begrenzen die Anzahl der Anfragen pro Minute. Wenn du unsicher bist, wähle eine niedrige Einstellung zwischen 1 und 6 Validierungen." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T1490986595::INFORMAL"] = "Jede Validierung ist eine eigene Anfrage. Mehr gleichzeitige Validierungen bedeuten also entsprechend viele gleichzeitige Anfragen. Einige Anbieter begrenzen die Anzahl der Anfragen pro Minute. Wenn du unsicher bist, wähle eine niedrige Einstellung zwischen 1 und 6 Validierungen." -- AI Task: Retrieval Context Validation -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T1717726852"] = "KI-Aufgabe: Validierung der Abrufkontexte" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T1717726852"] = "KI-Aufgabe: Validierung der Abrufkontexte" -- How many validations should run simultaneously? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2326205445"] = "Wie viele Validierungen sollen gleichzeitig ausgeführt werden?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2326205445"] = "Wie viele Validierungen sollen gleichzeitig ausgeführt werden?" -- When enabled, a model checks each retrieval context of classic RAG, whether it makes sense for the given prompt. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T240073404"] = "Wenn diese Option aktiviert ist, prüft ein Modell bei jedem Abrufkontext des klassischen RAG, ob er zum jeweiligen Prompt passt." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T240073404"] = "Wenn diese Option aktiviert ist, prüft ein Modell bei jedem Abrufkontext des klassischen RAG, ob er zum jeweiligen Prompt passt." -- Validate the retrieval contexts? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2428915017"] = "Abrufkontexte validieren?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2428915017"] = "Abrufkontexte validieren?" -- When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2520295642"] = "Wenn diese Option aktiviert ist, können Sie das Modell für diese Aufgabe, das nötige Vertrauensniveau und die Zahl der gleichzeitigen Validierungen vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Chats." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2520295642"] = "Wenn diese Option aktiviert ist, können Sie das Modell für diese Aufgabe, das nötige Vertrauensniveau und die Zahl der gleichzeitigen Validierungen vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Chats." -- When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2520295642::INFORMAL"] = "Wenn diese Option aktiviert ist, kannst du das Modell für diese Aufgabe, das nötige Vertrauensniveau und die Zahl der gleichzeitigen Validierungen vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Chats." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2520295642::INFORMAL"] = "Wenn diese Option aktiviert ist, kannst du das Modell für diese Aufgabe, das nötige Vertrauensniveau und die Zahl der gleichzeitigen Validierungen vorauswählen. Ohne vorausgewähltes Modell verwendet AI Studio das Modell des Chats." -- Preselect retrieval context validation options? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2663938643"] = "Optionen zur Überprüfung des Abrufkontexts vorauswählen?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2663938643"] = "Optionen zur Überprüfung des Abrufkontexts vorauswählen?" -- Use the model of the chat -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T3435835378"] = "Modell des Chats verwenden" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T3435835378"] = "Modell des Chats verwenden" -- No options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T354528094"] = "Es sind keine Optionen vorausgewählt" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T354528094"] = "Es sind keine Optionen vorausgewählt" -- Options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T3875604319"] = "Optionen sind vorausgewählt" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T3875604319"] = "Optionen sind vorausgewählt" -- validations -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T595734827"] = "Validierungen" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T595734827"] = "Validierungen" -- Each retrieval context is validated -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T705018823"] = "Jeder Abrufkontext wird validiert" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T705018823"] = "Jeder Abrufkontext wird validiert" -- In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T765642962"] = "Beim klassischen RAG prüft ein Modell jeden Abrufkontext – also jede Textstelle, die in den Datenquellen gefunden wurde – darauf, ob er zum aktuellen Prompt passt. Da es viele davon geben kann, empfiehlt sich für diese Aufgabe ein kostengünstiges und schnelles Modell. Wenn Sie ein lokales oder selbst gehostetes Modell verwenden, wählen Sie ein kleines (z. B. 3B) und schnelles Modell aus." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T765642962"] = "Beim klassischen RAG prüft ein Modell jeden Abrufkontext – also jede Textstelle, die in den Datenquellen gefunden wurde – darauf, ob er zum aktuellen Prompt passt. Da es viele davon geben kann, empfiehlt sich für diese Aufgabe ein kostengünstiges und schnelles Modell. Wenn Sie ein lokales oder selbst gehostetes Modell verwenden, wählen Sie ein kleines (z. B. 3B) und schnelles Modell aus." -- In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T765642962::INFORMAL"] = "Beim klassischen RAG prüft ein Modell jeden Abrufkontext – also jede Textstelle, die in den Datenquellen gefunden wurde – darauf, ob er zum aktuellen Prompt passt. Da es viele davon geben kann, empfiehlt sich für diese Aufgabe ein kostengünstiges und schnelles Modell. Wenn du ein lokales oder selbst gehostetes Modell verwendest, wähle ein kleines (z. B. 3B) und schnelles Modell aus." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T765642962::INFORMAL"] = "Beim klassischen RAG prüft ein Modell jeden Abrufkontext – also jede Textstelle, die in den Datenquellen gefunden wurde – darauf, ob er zum aktuellen Prompt passt. Da es viele davon geben kann, empfiehlt sich für diese Aufgabe ein kostengünstiges und schnelles Modell. Wenn du ein lokales oder selbst gehostetes Modell verwendest, wähle ein kleines (z. B. 3B) und schnelles Modell aus." -- No validation is performed -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T95175095"] = "Es findet keine Validierung statt" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T95175095"] = "Es findet keine Validierung statt" -- Spellchecking is disabled UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAPP::T1059411425"] = "Rechtschreibprüfung ist deaktiviert" @@ -23367,11 +23367,11 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::AUGMENTATIONPROCESSES::AUGMENTATIONONE::T -- The check of which passages fit your question failed. This answer uses all passages that were found. UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::AUGMENTATIONPROCESSES::AUGMENTATIONONE::T392269104::INFORMAL"] = "Die Prüfung, welche Textstellen zu deiner Frage passen, ist fehlgeschlagen. Diese Antwort verwendet alle gefundenen Textstellen." --- Automatic AI data source selection with heuristik source reduction -UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AGENTICSRCSELWITHDYNHEUR::T2339257645"] = "Automatische Auswahl der Datenquellen mittels KI und mit heuristischer Datenquellen-Reduktion" +-- Automatic AI data source selection with heuristic source reduction +UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AISRCSELWITHDYNHEUR::T1677447909"] = "Automatische Auswahl der Datenquellen mittels KI und mit heuristischer Datenquellen-Reduktion" -- Automatically selects the appropriate data sources based on the last prompt. Applies a heuristic reduction at the end to reduce the number of data sources. -UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AGENTICSRCSELWITHDYNHEUR::T648937779"] = "Wählt automatisch die passenden Datenquellen basierend auf der letzten Eingabe aus. Wendet am Ende eine heuristische Reduzierung an, um die Anzahl der Datenquellen zu verringern." +UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AISRCSELWITHDYNHEUR::T648937779"] = "Wählt automatisch die passenden Datenquellen basierend auf der letzten Eingabe aus. Wendet am Ende eine heuristische Reduzierung an, um die Anzahl der Datenquellen zu verringern." -- This RAG process filters data sources, automatically selects appropriate sources, optionally allows manual source selection, retrieves data, and automatically validates the retrieval context. UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::RAGPROCESSES::AISRCSELWITHRETCTXVAL::T3047786484"] = "Dieser RAG-Prozess filtert Datenquellen, wählt automatisch passende Quellen aus, ermöglicht optional die manuelle Auswahl von Quellen, ruft Daten ab und überprüft den Abrufkontext automatisch." diff --git a/app/MindWork AI Studio/Plugins/languages/en-us-97dfb1ba-50c4-4440-8dfa-6575daf543c8/plugin.lua b/app/MindWork AI Studio/Plugins/languages/en-us-97dfb1ba-50c4-4440-8dfa-6575daf543c8/plugin.lua index a3e5c8712..73b82fa55 100644 --- a/app/MindWork AI Studio/Plugins/languages/en-us-97dfb1ba-50c4-4440-8dfa-6575daf543c8/plugin.lua +++ b/app/MindWork AI Studio/Plugins/languages/en-us-97dfb1ba-50c4-4440-8dfa-6575daf543c8/plugin.lua @@ -10348,172 +10348,172 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SELECTFILE::T1984243691::INFORMAL"] = "Yo UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SELECTFILE::T4285779702"] = "Choose File" -- External Assistants rated below this audit level are treated as insufficiently reviewed. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1162151451"] = "External Assistants rated below this audit level are treated as insufficiently reviewed." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1162151451"] = "External Assistants rated below this audit level are treated as insufficiently reviewed." -- Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1707650617"] = "Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1707650617"] = "Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing." -- Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1707650617::INFORMAL"] = "Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1707650617::INFORMAL"] = "Optionally choose a dedicated provider for assistant plugin audits. When left empty, AI Studio uses the app-wide default provider, or else the model you choose when auditing." -- Users may still activate plugins below the minimum Audit-Level -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1840342259"] = "Users may still activate plugins below the minimum Audit-Level" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1840342259"] = "Users may still activate plugins below the minimum Audit-Level" -- Automatically audit new or updated plugins in the background? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T1843401860"] = "Automatically audit new or updated plugins in the background?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T1843401860"] = "Automatically audit new or updated plugins in the background?" -- Require a security audit before activating external Assistants? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2010360320"] = "Require a security audit before activating external Assistants?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2010360320"] = "Require a security audit before activating external Assistants?" -- External Assistants must be audited before activation -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2065972970"] = "External Assistants must be audited before activation" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2065972970"] = "External Assistants must be audited before activation" -- Before external assistants are activated, a model audits newly installed or updated ones for security risks. AI Studio keeps the latest audit card until the plugin manifest changes. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2081939459"] = "Before external assistants are activated, a model audits newly installed or updated ones for security risks. AI Studio keeps the latest audit card until the plugin manifest changes." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2081939459"] = "Before external assistants are activated, a model audits newly installed or updated ones for security risks. AI Studio keeps the latest audit card until the plugin manifest changes." -- AI Task: Security Audit for external Assistants -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2200966468"] = "AI Task: Security Audit for external Assistants" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2200966468"] = "AI Task: Security Audit for external Assistants" -- Block activation below the minimum Audit-Level? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T232834129"] = "Block activation below the minimum Audit-Level?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T232834129"] = "Block activation below the minimum Audit-Level?" -- Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2516645821"] = "Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2516645821"] = "Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection?" -- Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2516645821::INFORMAL"] = "Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2516645821::INFORMAL"] = "Disabling this setting turns off assistant plugin security audits. External assistants may then be activated and used even without a valid audit or after plugin changes. Do you really want to disable this protection?" -- Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2857321563"] = "Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2857321563"] = "Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options." -- Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2857321563::INFORMAL"] = "Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2857321563::INFORMAL"] = "Automatic audits cannot run, because no model is available for security checks. Choose one above, or set an app-wide default provider in the app options." -- Use the app default, otherwise the model chosen when auditing -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2888830822"] = "Use the app default, otherwise the model chosen when auditing" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2888830822"] = "Use the app default, otherwise the model chosen when auditing" -- External Assistant can be activated without an audit -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T2915620630"] = "External Assistant can be activated without an audit" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T2915620630"] = "External Assistant can be activated without an audit" -- The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended). -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3081698423"] = "The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended)." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3081698423"] = "The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended)." -- The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended). -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3081698423::INFORMAL"] = "The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended)." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3081698423::INFORMAL"] = "The audit shows you all security risks and information. If you consider this rating false at your own discretion, you can decide to install it anyway (not recommended)." -- Security audit is done manually by the user -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3568079552"] = "Security audit is done manually by the user" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3568079552"] = "Security audit is done manually by the user" -- Minimum required audit level -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3599539909"] = "Minimum required audit level" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3599539909"] = "Minimum required audit level" -- Security audit is automatically done in the background -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T3684348859"] = "Security audit is automatically done in the background" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T3684348859"] = "Security audit is automatically done in the background" -- Disable Assistant Audit Protection -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T4019550023"] = "Disable Assistant Audit Protection" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T4019550023"] = "Disable Assistant Audit Protection" -- Activation is blocked below the minimum Audit-Level -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTASSISTANTAUDIT::T4041192469"] = "Activation is blocked below the minimum Audit-Level" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKASSISTANTAUDIT::T4041192469"] = "Activation is blocked below the minimum Audit-Level" -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T1210631144"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T1210631144"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant." -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T1210631144::INFORMAL"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T1210631144::INFORMAL"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the assistant." -- When an assistant loads content from the web, a model can clean it up: it extracts the main content, removes advertisements and other irrelevant things, and attempts to convert relative links into absolute links so that they can be used. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T1587139574"] = "When an assistant loads content from the web, a model can clean it up: it extracts the main content, removes advertisements and other irrelevant things, and attempts to convert relative links into absolute links so that they can be used." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T1587139574"] = "When an assistant loads content from the web, a model can clean it up: it extracts the main content, removes advertisements and other irrelevant things, and attempts to convert relative links into absolute links so that they can be used." -- Use the model of the assistant -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T2899245972"] = "Use the model of the assistant" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T2899245972"] = "Use the model of the assistant" -- AI Task: Text Content Cleaner -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T3478589970"] = "AI Task: Text Content Cleaner" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T3478589970"] = "AI Task: Text Content Cleaner" -- No options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T354528094"] = "No options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T354528094"] = "No options are preselected" -- Preselect text content cleaner options? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T3659087305"] = "Preselect text content cleaner options?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T3659087305"] = "Preselect text content cleaner options?" -- Options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTCONTENTCLEANER::T3875604319"] = "Options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKCONTENTCLEANER::T3875604319"] = "Options are preselected" -- AI Task: Data Source Selection -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T1227800581"] = "AI Task: Data Source Selection" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T1227800581"] = "AI Task: Data Source Selection" -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T2513220366"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T2513220366"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat." -- When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T2513220366::INFORMAL"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T2513220366::INFORMAL"] = "When enabled, you can preselect the model for this task and the confidence it needs. Without a preselected model, AI Studio uses the model of the chat." -- In classic RAG, which searches the data sources with every message, a model first selects the data sources which fit the current prompt. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T2522862914"] = "In classic RAG, which searches the data sources with every message, a model first selects the data sources which fit the current prompt." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T2522862914"] = "In classic RAG, which searches the data sources with every message, a model first selects the data sources which fit the current prompt." -- Use the model of the chat -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T3435835378"] = "Use the model of the chat" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T3435835378"] = "Use the model of the chat" -- No options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T354528094"] = "No options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T354528094"] = "No options are preselected" -- Options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T3875604319"] = "Options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T3875604319"] = "Options are preselected" -- Preselect data source selection options? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTDATASOURCESELECTION::T991598424"] = "Preselect data source selection options?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKDATASOURCESELECTION::T991598424"] = "Preselect data source selection options?" -- Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T1490986595"] = "Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T1490986595"] = "Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations." -- Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T1490986595::INFORMAL"] = "Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T1490986595::INFORMAL"] = "Each validation is a request of its own, so more simultaneous validations mean as many simultaneous requests. Some providers limit the number of requests per minute. When you are unsure, choose a low setting between 1 and 6 validations." -- AI Task: Retrieval Context Validation -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T1717726852"] = "AI Task: Retrieval Context Validation" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T1717726852"] = "AI Task: Retrieval Context Validation" -- How many validations should run simultaneously? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2326205445"] = "How many validations should run simultaneously?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2326205445"] = "How many validations should run simultaneously?" -- When enabled, a model checks each retrieval context of classic RAG, whether it makes sense for the given prompt. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T240073404"] = "When enabled, a model checks each retrieval context of classic RAG, whether it makes sense for the given prompt." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T240073404"] = "When enabled, a model checks each retrieval context of classic RAG, whether it makes sense for the given prompt." -- Validate the retrieval contexts? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2428915017"] = "Validate the retrieval contexts?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2428915017"] = "Validate the retrieval contexts?" -- When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2520295642"] = "When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2520295642"] = "When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat." -- When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2520295642::INFORMAL"] = "When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2520295642::INFORMAL"] = "When enabled, you can preselect the model for this task, the confidence it needs, and how many validations run simultaneously. Without a preselected model, AI Studio uses the model of the chat." -- Preselect retrieval context validation options? -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T2663938643"] = "Preselect retrieval context validation options?" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T2663938643"] = "Preselect retrieval context validation options?" -- Use the model of the chat -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T3435835378"] = "Use the model of the chat" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T3435835378"] = "Use the model of the chat" -- No options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T354528094"] = "No options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T354528094"] = "No options are preselected" -- Options are preselected -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T3875604319"] = "Options are preselected" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T3875604319"] = "Options are preselected" -- validations -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T595734827"] = "validations" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T595734827"] = "validations" -- Each retrieval context is validated -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T705018823"] = "Each retrieval context is validated" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T705018823"] = "Each retrieval context is validated" -- In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T765642962"] = "In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T765642962"] = "In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one." -- In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one. -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T765642962::INFORMAL"] = "In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one." +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T765642962::INFORMAL"] = "In classic RAG, a model checks each retrieval context, i.e., each passage found in the data sources, whether it fits the current prompt. There can be many of them, so you might want to use a cheap and fast model for this job. When using a local or self-hosted model, look for a small (e.g., 3B) and fast one." -- No validation is performed -UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAGENTRETRIEVALCONTEXTVALIDATION::T95175095"] = "No validation is performed" +UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAITASKRETRIEVALCONTEXTVALIDATION::T95175095"] = "No validation is performed" -- Spellchecking is disabled UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::SETTINGS::SETTINGSPANELAPP::T1059411425"] = "Spellchecking is disabled" @@ -23367,11 +23367,11 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::AUGMENTATIONPROCESSES::AUGMENTATIONONE::T -- The check of which passages fit your question failed. This answer uses all passages that were found. UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::AUGMENTATIONPROCESSES::AUGMENTATIONONE::T392269104::INFORMAL"] = "The check of which passages fit your question failed. This answer uses all passages that were found." --- Automatic AI data source selection with heuristik source reduction -UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AGENTICSRCSELWITHDYNHEUR::T2339257645"] = "Automatic AI data source selection with heuristik source reduction" +-- Automatic AI data source selection with heuristic source reduction +UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AISRCSELWITHDYNHEUR::T1677447909"] = "Automatic AI data source selection with heuristic source reduction" -- Automatically selects the appropriate data sources based on the last prompt. Applies a heuristic reduction at the end to reduce the number of data sources. -UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AGENTICSRCSELWITHDYNHEUR::T648937779"] = "Automatically selects the appropriate data sources based on the last prompt. Applies a heuristic reduction at the end to reduce the number of data sources." +UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::DATASOURCESELECTIONPROCESSES::AISRCSELWITHDYNHEUR::T648937779"] = "Automatically selects the appropriate data sources based on the last prompt. Applies a heuristic reduction at the end to reduce the number of data sources." -- This RAG process filters data sources, automatically selects appropriate sources, optionally allows manual source selection, retrieves data, and automatically validates the retrieval context. UI_TEXT_CONTENT["AISTUDIO::TOOLS::RAG::RAGPROCESSES::AISRCSELWITHRETCTXVAL::T3047786484"] = "This RAG process filters data sources, automatically selects appropriate sources, optionally allows manual source selection, retrieves data, and automatically validates the retrieval context." diff --git a/app/MindWork AI Studio/Settings/DataModel/Data.cs b/app/MindWork AI Studio/Settings/DataModel/Data.cs index f5d32bb69..f2fb2cd0e 100644 --- a/app/MindWork AI Studio/Settings/DataModel/Data.cs +++ b/app/MindWork AI Studio/Settings/DataModel/Data.cs @@ -11,7 +11,7 @@ public sealed class Data /// The version of the settings file. Allows us to upgrade the settings /// when a new version is available. /// - public Version Version { get; set; } = Version.V6; + public Version Version { get; set; } = Version.V7; /// /// List of configured providers. @@ -195,9 +195,9 @@ public sealed class Data public DataTextContentCleaner TextContentCleaner { get; set; } = new(x => x.TextContentCleaner); - public DataAgentDataSourceSelection AgentDataSourceSelection { get; set; } = new(x => x.AgentDataSourceSelection); + public DataDataSourceSelection DataSourceSelection { get; set; } = new(x => x.DataSourceSelection); - public DataAgentRetrievalContextValidation AgentRetrievalContextValidation { get; set; } = new(x => x.AgentRetrievalContextValidation); + public DataRetrievalContextValidation RetrievalContextValidation { get; set; } = new(x => x.RetrievalContextValidation); public DataAssistantPluginAudit AssistantPluginAudit { get; set; } = new(x => x.AssistantPluginAudit); diff --git a/app/MindWork AI Studio/Settings/DataModel/DataAssistantPluginAudit.cs b/app/MindWork AI Studio/Settings/DataModel/DataAssistantPluginAudit.cs index e48d8982e..703f9f5b4 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataAssistantPluginAudit.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataAssistantPluginAudit.cs @@ -26,7 +26,7 @@ public sealed class DataAssistantPluginAudit(Expression - public string PreselectedAgentProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedAgentProvider, string.Empty); + public string PreselectedProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedProvider, string.Empty); /// /// The minimum confidence level of the provider which audits the plugins. diff --git a/app/MindWork AI Studio/Settings/DataModel/DataAgentDataSourceSelection.cs b/app/MindWork AI Studio/Settings/DataModel/DataDataSourceSelection.cs similarity index 54% rename from app/MindWork AI Studio/Settings/DataModel/DataAgentDataSourceSelection.cs rename to app/MindWork AI Studio/Settings/DataModel/DataDataSourceSelection.cs index 10007b5b6..a2c3a2900 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataAgentDataSourceSelection.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataDataSourceSelection.cs @@ -4,30 +4,30 @@ using AIStudio.Provider; namespace AIStudio.Settings.DataModel; -public sealed class DataAgentDataSourceSelection(Expression>? configSelection = null) +public sealed class DataDataSourceSelection(Expression>? configSelection = null) { /// /// The default constructor for the JSON deserializer. /// - public DataAgentDataSourceSelection() : this(null) + public DataDataSourceSelection() : this(null) { } /// /// Preselect any data source selection options? /// - public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false); + public bool PreselectOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectOptions, false); /// /// Preselect a data source selection provider? /// - public string PreselectedAgentProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedAgentProvider, string.Empty); + public string PreselectedProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedProvider, string.Empty); /// /// The minimum confidence level of the provider which selects the data sources. /// /// - /// It applies only while PreselectAgentOptions is on, and then to every provider which selects them, the fallbacks included. + /// It applies only while PreselectOptions is on, and then to every provider which selects them, the fallbacks included. /// public ConfidenceLevel MinimumProviderConfidence { get; set; } = ManagedConfiguration.Register(configSelection, n => n.MinimumProviderConfidence, ConfidenceLevel.NONE); } \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/DataLegalCheck.cs b/app/MindWork AI Studio/Settings/DataModel/DataLegalCheck.cs index fccd28420..0c7f53926 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataLegalCheck.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataLegalCheck.cs @@ -22,7 +22,7 @@ public class DataLegalCheck /// /// Preselect the text content cleaner? /// - public bool PreselectContentCleanerAgent { get; set; } + public bool PreselectContentCleaner { get; set; } /// /// The minimum confidence level required for a provider to be considered. diff --git a/app/MindWork AI Studio/Settings/DataModel/DataAgentRetrievalContextValidation.cs b/app/MindWork AI Studio/Settings/DataModel/DataRetrievalContextValidation.cs similarity index 66% rename from app/MindWork AI Studio/Settings/DataModel/DataAgentRetrievalContextValidation.cs rename to app/MindWork AI Studio/Settings/DataModel/DataRetrievalContextValidation.cs index 9d592baf8..c510c85e2 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataAgentRetrievalContextValidation.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataRetrievalContextValidation.cs @@ -4,12 +4,12 @@ using AIStudio.Provider; namespace AIStudio.Settings.DataModel; -public sealed class DataAgentRetrievalContextValidation(Expression>? configSelection = null) +public sealed class DataRetrievalContextValidation(Expression>? configSelection = null) { /// /// The default constructor for the JSON deserializer. /// - public DataAgentRetrievalContextValidation() : this(null) + public DataRetrievalContextValidation() : this(null) { } @@ -21,18 +21,18 @@ public sealed class DataAgentRetrievalContextValidation(Expression /// Preselect any retrieval context validation options? /// - public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false); + public bool PreselectOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectOptions, false); /// /// Preselect a retrieval context validation provider? /// - public string PreselectedAgentProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedAgentProvider, string.Empty); + public string PreselectedProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedProvider, string.Empty); /// /// The minimum confidence level of the provider which validates the retrieval contexts. /// /// - /// It applies only while PreselectAgentOptions is on, and then to every provider which validates them, the fallbacks included. + /// It applies only while PreselectOptions is on, and then to every provider which validates them, the fallbacks included. /// public ConfidenceLevel MinimumProviderConfidence { get; set; } = ManagedConfiguration.Register(configSelection, n => n.MinimumProviderConfidence, ConfidenceLevel.NONE); diff --git a/app/MindWork AI Studio/Settings/DataModel/DataSWOTAnalysis.cs b/app/MindWork AI Studio/Settings/DataModel/DataSWOTAnalysis.cs index 75cf8c08e..8e4956511 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataSWOTAnalysis.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataSWOTAnalysis.cs @@ -22,7 +22,7 @@ public sealed class DataSWOTAnalysis /// /// Preselect the text content cleaner? /// - public bool PreselectContentCleanerAgent { get; set; } + public bool PreselectContentCleaner { get; set; } /// /// Preselect the target language? diff --git a/app/MindWork AI Studio/Settings/DataModel/DataTextContentCleaner.cs b/app/MindWork AI Studio/Settings/DataModel/DataTextContentCleaner.cs index 3854bd0bb..71a513965 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataTextContentCleaner.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataTextContentCleaner.cs @@ -16,18 +16,18 @@ public sealed class DataTextContentCleaner(Expression /// Preselect any text content cleaner options? /// - public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false); + public bool PreselectOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectOptions, false); /// /// Preselect a text content cleaner provider? /// - public string PreselectedAgentProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedAgentProvider, string.Empty); + public string PreselectedProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedProvider, string.Empty); /// /// The minimum confidence level of the provider which cleans the text content. /// /// - /// It applies only while PreselectAgentOptions is on, and then to every provider which cleans it, the fallbacks included. + /// It applies only while PreselectOptions is on, and then to every provider which cleans it, the fallbacks included. /// public ConfidenceLevel MinimumProviderConfidence { get; set; } = ManagedConfiguration.Register(configSelection, n => n.MinimumProviderConfidence, ConfidenceLevel.NONE); } \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/DataTextSummarizer.cs b/app/MindWork AI Studio/Settings/DataModel/DataTextSummarizer.cs index 295b4db0a..5855ffbb2 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataTextSummarizer.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataTextSummarizer.cs @@ -24,7 +24,7 @@ public sealed class DataTextSummarizer /// /// Preselect the text content cleaner? /// - public bool PreselectContentCleanerAgent { get; set; } + public bool PreselectContentCleaner { get; set; } /// /// Preselect the target language? diff --git a/app/MindWork AI Studio/Settings/DataModel/DataTranslation.cs b/app/MindWork AI Studio/Settings/DataModel/DataTranslation.cs index 44789f03c..7b1c2279a 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataTranslation.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataTranslation.cs @@ -32,7 +32,7 @@ public sealed class DataTranslation /// /// Preselect the text content cleaner? /// - public bool PreselectContentCleanerAgent { get; set; } + public bool PreselectContentCleaner { get; set; } /// /// Preselect the target language? diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAgentDataSourceSelectionV6.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAgentDataSourceSelectionV6.cs new file mode 100644 index 000000000..6382119c9 --- /dev/null +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAgentDataSourceSelectionV6.cs @@ -0,0 +1,24 @@ +using AIStudio.Provider; + +namespace AIStudio.Settings.DataModel.PreviousModels; + +/// +/// The settings of the data source selection, as settings files up to version V6 store them. +/// +public sealed class DataAgentDataSourceSelectionV6 +{ + /// + /// Preselect any data source selection options? + /// + public bool PreselectAgentOptions { get; set; } + + /// + /// Preselect a data source selection provider? + /// + public string PreselectedAgentProvider { get; set; } = string.Empty; + + /// + /// The minimum confidence level of the provider which selects the data sources. + /// + public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAgentRetrievalContextValidationV6.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAgentRetrievalContextValidationV6.cs new file mode 100644 index 000000000..6b5b74fd8 --- /dev/null +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAgentRetrievalContextValidationV6.cs @@ -0,0 +1,34 @@ +using AIStudio.Provider; + +namespace AIStudio.Settings.DataModel.PreviousModels; + +/// +/// The settings of the retrieval context validation, as settings files up to version V6 store them. +/// +public sealed class DataAgentRetrievalContextValidationV6 +{ + /// + /// Enable the retrieval context validation? + /// + public bool EnableRetrievalContextValidation { get; set; } + + /// + /// Preselect any retrieval context validation options? + /// + public bool PreselectAgentOptions { get; set; } + + /// + /// Preselect a retrieval context validation provider? + /// + public string PreselectedAgentProvider { get; set; } = string.Empty; + + /// + /// The minimum confidence level of the provider which validates the retrieval contexts. + /// + public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE; + + /// + /// Configure how many parallel validations to run. + /// + public int NumParallelValidations { get; set; } = 3; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAssistantPluginAuditV6.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAssistantPluginAuditV6.cs new file mode 100644 index 000000000..bc910e197 --- /dev/null +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataAssistantPluginAuditV6.cs @@ -0,0 +1,45 @@ +using AIStudio.AIOperations.PluginAudit; +using AIStudio.Provider; + +namespace AIStudio.Settings.DataModel.PreviousModels; + +/// +/// The settings for auditing assistant plugins, as settings files up to version V6 store them. +/// +public sealed class DataAssistantPluginAuditV6 +{ + /// + /// Should assistant plugins be audited before they can be activated? + /// + public bool RequireAuditBeforeActivation { get; set; } = true; + + /// + /// Which provider should be used for the assistant plugin audit? + /// + public string PreselectedAgentProvider { get; set; } = string.Empty; + + /// + /// The minimum confidence level of the provider which audits the plugins. + /// + public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE; + + /// + /// The minimum audit level assistant plugins should meet. + /// + public PluginAuditLevel MinimumLevel { get; set; } = PluginAuditLevel.CAUTION; + + /// + /// Should activation be blocked when the audit result is below the minimum level? + /// + public bool BlockActivationBelowMinimum { get; set; } = true; + + /// + /// If true, the security audit will be hidden from the user and done in the background. + /// + public bool AutomaticallyAuditAssistants { get; set; } + + /// + /// Enterprise-managed assistant plugin hashes that are approved without requiring a user audit. + /// + public IList EnterpriseApprovedPlugins { get; set; } = []; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataLegalCheckV6.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataLegalCheckV6.cs new file mode 100644 index 000000000..9dd019147 --- /dev/null +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataLegalCheckV6.cs @@ -0,0 +1,44 @@ +using AIStudio.Provider; + +namespace AIStudio.Settings.DataModel.PreviousModels; + +/// +/// The settings of the legal check assistant, as settings files up to version V6 store them. +/// +public sealed class DataLegalCheckV6 +{ + /// + /// Do you want to preselect any legal check options? + /// + public bool PreselectOptions { get; set; } + + /// + /// Hide the web content reader? + /// + public bool HideWebContentReader { get; set; } + + /// + /// Preselect the web content reader? + /// + public bool PreselectWebContentReader { get; set; } + + /// + /// Preselect the text content cleaner? + /// + public bool PreselectContentCleanerAgent { get; set; } + + /// + /// The minimum confidence level required for a provider to be considered. + /// + public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE; + + /// + /// The preselected provider. + /// + public string PreselectedProvider { get; set; } = string.Empty; + + /// + /// Preselect a profile? + /// + public string PreselectedProfile { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataSWOTAnalysisV6.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataSWOTAnalysisV6.cs new file mode 100644 index 000000000..ae98c9735 --- /dev/null +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataSWOTAnalysisV6.cs @@ -0,0 +1,54 @@ +using AIStudio.Provider; + +namespace AIStudio.Settings.DataModel.PreviousModels; + +/// +/// The settings of the SWOT analysis assistant, as settings files up to version V6 store them. +/// +public sealed class DataSWOTAnalysisV6 +{ + /// + /// Preselect any SWOT analysis options? + /// + public bool PreselectOptions { get; set; } + + /// + /// Hide the web content reader? + /// + public bool HideWebContentReader { get; set; } + + /// + /// Preselect the web content reader? + /// + public bool PreselectWebContentReader { get; set; } + + /// + /// Preselect the text content cleaner? + /// + public bool PreselectContentCleanerAgent { get; set; } + + /// + /// Preselect the target language? + /// + public CommonLanguages PreselectedTargetLanguage { get; set; } + + /// + /// Preselect another target language? + /// + public string PreselectedOtherLanguage { get; set; } = string.Empty; + + /// + /// Preselect any aspects that the SWOT analysis should focus on? + /// + public string PreselectedImportantAspects { get; set; } = string.Empty; + + /// + /// The minimum confidence level required for a provider to be considered. + /// + public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE; + + /// + /// The preselected provider. + /// + public string PreselectedProvider { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTextContentCleanerV6.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTextContentCleanerV6.cs new file mode 100644 index 000000000..8815b57df --- /dev/null +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTextContentCleanerV6.cs @@ -0,0 +1,24 @@ +using AIStudio.Provider; + +namespace AIStudio.Settings.DataModel.PreviousModels; + +/// +/// The settings of the text content cleaner, as settings files up to version V6 store them. +/// +public sealed class DataTextContentCleanerV6 +{ + /// + /// Preselect any text content cleaner options? + /// + public bool PreselectAgentOptions { get; set; } + + /// + /// Preselect a text content cleaner provider? + /// + public string PreselectedAgentProvider { get; set; } = string.Empty; + + /// + /// The minimum confidence level of the provider which cleans the text content. + /// + public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTextSummarizerV6.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTextSummarizerV6.cs new file mode 100644 index 000000000..da0cd71e3 --- /dev/null +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTextSummarizerV6.cs @@ -0,0 +1,65 @@ +using AIStudio.Assistants.TextSummarizer; +using AIStudio.Provider; + +namespace AIStudio.Settings.DataModel.PreviousModels; + +/// +/// The settings of the text summarizer, as settings files up to version V6 store them. +/// +public sealed class DataTextSummarizerV6 +{ + /// + /// Preselect any text summarizer options? + /// + public bool PreselectOptions { get; set; } + + /// + /// Hide the web content reader? + /// + public bool HideWebContentReader { get; set; } + + /// + /// Preselect the web content reader? + /// + public bool PreselectWebContentReader { get; set; } + + /// + /// Preselect the text content cleaner? + /// + public bool PreselectContentCleanerAgent { get; set; } + + /// + /// Preselect the target language? + /// + public CommonLanguages PreselectedTargetLanguage { get; set; } + + /// + /// Preselect any other language? + /// + public string PreselectedOtherLanguage { get; set; } = string.Empty; + + /// + /// Preselect the complexity? + /// + public Complexity PreselectedComplexity { get; set; } + + /// + /// Preselect any expertise in a field? + /// + public string PreselectedExpertInField { get; set; } = string.Empty; + + /// + /// Preselect any important aspects that the summarizer should take into account? + /// + public string PreselectedImportantAspects { get; set; } = string.Empty; + + /// + /// The minimum confidence level required for a provider to be considered. + /// + public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE; + + /// + /// Preselect a text summarizer provider? + /// + public string PreselectedProvider { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTranslationV6.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTranslationV6.cs new file mode 100644 index 000000000..96180abf2 --- /dev/null +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataTranslationV6.cs @@ -0,0 +1,59 @@ +using AIStudio.Provider; + +namespace AIStudio.Settings.DataModel.PreviousModels; + +/// +/// The settings of the translation assistant, as settings files up to version V6 store them. +/// +public sealed class DataTranslationV6 +{ + /// + /// The live translation interval for debouncing in milliseconds. + /// + public int DebounceIntervalMilliseconds { get; set; } = 1_500; + + /// + /// Do we want to preselect any translator options? + /// + public bool PreselectOptions { get; set; } + + /// + /// Preselect the live translation? + /// + public bool PreselectLiveTranslation { get; set; } + + /// + /// Hide the web content reader? + /// + public bool HideWebContentReader { get; set; } + + /// + /// Preselect the web content reader? + /// + public bool PreselectWebContentReader { get; set; } + + /// + /// Preselect the text content cleaner? + /// + public bool PreselectContentCleanerAgent { get; set; } + + /// + /// Preselect the target language? + /// + public CommonLanguages PreselectedTargetLanguage { get; set; } = CommonLanguages.EN_US; + + /// + /// Preselect any other language? + /// + public string PreselectOtherLanguage { get; set; } = string.Empty; + + /// + /// The minimum confidence level required for a provider to be considered. + /// + public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE; + + /// + /// The preselected translator provider. + /// + public string PreselectedProvider { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV4.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV4.cs index c91f1fcff..835269e65 100644 --- a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV4.cs +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV4.cs @@ -41,13 +41,13 @@ public sealed class DataV4 public DataIconFinder IconFinder { get; set; } = new(); - public DataTranslation Translation { get; set; } = new(); + public DataTranslationV6 Translation { get; set; } = new(); public DataCoding Coding { get; set; } = new(); - public DataTextSummarizer TextSummarizer { get; set; } = new(); + public DataTextSummarizerV6 TextSummarizer { get; set; } = new(); - public DataTextContentCleaner TextContentCleaner { get; set; } = new(); + public DataTextContentCleanerV6 TextContentCleaner { get; set; } = new(); public DataAgenda Agenda { get; set; } = new(); @@ -57,7 +57,7 @@ public sealed class DataV4 public DataEMail EMail { get; set; } = new(); - public DataLegalCheck LegalCheck { get; set; } = new(); + public DataLegalCheckV6 LegalCheck { get; set; } = new(); public DataSynonyms Synonyms { get; set; } = new(); diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV5.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV5.cs index 4a7e3afdc..4d6e4a741 100644 --- a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV5.cs +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV5.cs @@ -103,7 +103,7 @@ public sealed class DataV5 public DataIconFinder IconFinder { get; set; } = new(); - public DataTranslation Translation { get; set; } = new(); + public DataTranslationV6 Translation { get; set; } = new(); public DataCoding Coding { get; set; } = new(); @@ -113,15 +113,15 @@ public sealed class DataV5 public DataMandatoryInformation MandatoryInformation { get; set; } = new(); - public DataTextSummarizer TextSummarizer { get; set; } = new(); + public DataTextSummarizerV6 TextSummarizer { get; set; } = new(); - public DataTextContentCleaner TextContentCleaner { get; set; } = new(); - - public DataAgentDataSourceSelection AgentDataSourceSelection { get; set; } = new(); - - public DataAgentRetrievalContextValidation AgentRetrievalContextValidation { get; set; } = new(); + public DataTextContentCleanerV6 TextContentCleaner { get; set; } = new(); - public DataAssistantPluginAudit AssistantPluginAudit { get; set; } = new(x => x.AssistantPluginAudit); + public DataAgentDataSourceSelectionV6 AgentDataSourceSelection { get; set; } = new(); + + public DataAgentRetrievalContextValidationV6 AgentRetrievalContextValidation { get; set; } = new(); + + public DataAssistantPluginAuditV6 AssistantPluginAudit { get; set; } = new(); public DataAgenda Agenda { get; set; } = new(); @@ -135,7 +135,7 @@ public sealed class DataV5 public DataSlideBuilder SlideBuilder { get; set; } = new(); - public DataLegalCheck LegalCheck { get; set; } = new(); + public DataLegalCheckV6 LegalCheck { get; set; } = new(); public DataSynonyms Synonyms { get; set; } = new(); diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV6.cs b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV6.cs new file mode 100644 index 000000000..565188d0e --- /dev/null +++ b/app/MindWork AI Studio/Settings/DataModel/PreviousModels/DataV6.cs @@ -0,0 +1,204 @@ +using AIStudio.Tools.PluginSystem.Assistants; + +namespace AIStudio.Settings.DataModel.PreviousModels; + +/// +/// The data model of settings files with version V6. +/// +public sealed class DataV6 +{ + /// + /// The version of the settings file. Allows us to upgrade the settings + /// when a new version is available. + /// + public Version Version { get; set; } = Version.V6; + + /// + /// List of configured providers. + /// + public List Providers { get; set; } = []; + + /// + /// Settings concerning confidence levels. + /// + public DataConfidence Confidence { get; set; } = new(); + + /// + /// Settings concerning data source security checks. + /// + public DataSourceSecuritySettings DataSourceSecurity { get; set; } = new(); + + /// + /// A collection of embedding providers configured. + /// + public List EmbeddingProviders { get; set; } = []; + + /// + /// A collection of speech providers configured. + /// + public List TranscriptionProviders { get; set; } = []; + + /// + /// A collection of data sources configured. + /// + public List DataSources { get; set; } = []; + + /// + /// A collection of mailboxes configured. + /// + public List Mailboxes { get; set; } = []; + + /// + /// Settings which apply to all mailboxes. + /// + public DataMailboxes MailboxSettings { get; set; } = new(); + + /// + /// List of configured profiles. + /// + public List Profiles { get; set; } = []; + + /// + /// List of configured chat templates. + /// + public List ChatTemplates { get; set; } = []; + + /// + /// List of enabled plugins. + /// + public List EnabledPlugins { get; set; } = []; + + /// + /// Metadata for managed settings that use a plugin-provided editable default. + /// + public Dictionary ManagedEditableDefaults { get; set; } = []; + + /// + /// The configuration plugin that owns each locked managed setting. + /// + public Dictionary ManagedLockedConfigurations { get; set; } = []; + + /// + /// The value each managed setting had before a configuration plugin took it over, as JSON. + /// + public Dictionary ManagedUserValueSnapshots { get; set; } = []; + + /// + /// Cached audit results for assistant plugins. + /// + public List AssistantPluginAudits { get; set; } = []; + + /// + /// The assistant plugin hashes whose organization default for the activation was already applied. + /// + public List AppliedEnterpriseAssistantActivations { get; set; } = []; + + /// + /// Whether AI Studio already stored the chats and the settings once more, so that every path below + /// the data directory in them is relative. + /// + public bool StoredDataPathsAreRelative { get; set; } + + /// + /// The next provider number to use. + /// + public uint NextProviderNum { get; set; } = 1; + + /// + /// The next embedding provider number to use. + /// + public uint NextEmbeddingNum { get; set; } = 1; + + /// + /// The next transcription provider number to use. + /// + public uint NextTranscriptionNum { get; set; } = 1; + + /// + /// The next data source number to use. + /// + public uint NextDataSourceNum { get; set; } = 1; + + /// + /// The next profile number to use. + /// + public uint NextProfileNum { get; set; } = 1; + + /// + /// The next chat template number to use. + /// + public uint NextChatTemplateNum { get; set; } = 1; + + /// + /// The next document analysis policy number to use. + /// + public uint NextDocumentAnalysisPolicyNum { get; set; } = 1; + + public DataApp App { get; set; } = new(); + + public DataChat Chat { get; set; } = new(); + + public DataAssistantsPage AssistantsPage { get; set; } = new(); + + public DataWorkspace Workspace { get; set; } = new(); + + public DataIconFinder IconFinder { get; set; } = new(); + + public DataTranslationV6 Translation { get; set; } = new(); + + public DataCoding Coding { get; set; } = new(); + + public DataERI ERI { get; set; } = new(); + + public DataDocumentAnalysis DocumentAnalysis { get; set; } = new(); + + public DataBatchProcessing BatchProcessing { get; set; } = new(); + + public DataMandatoryInformation MandatoryInformation { get; set; } = new(); + + public DataTextSummarizerV6 TextSummarizer { get; set; } = new(); + + public DataSWOTAnalysisV6 SWOTAnalysis { get; set; } = new(); + + public DataTextContentCleanerV6 TextContentCleaner { get; set; } = new(); + + public DataAgentDataSourceSelectionV6 AgentDataSourceSelection { get; set; } = new(); + + public DataAgentRetrievalContextValidationV6 AgentRetrievalContextValidation { get; set; } = new(); + + public DataAssistantPluginAuditV6 AssistantPluginAudit { get; set; } = new(); + + public DataAgenda Agenda { get; set; } = new(); + + public DataGrammarSpelling GrammarSpelling { get; set; } = new(); + + public DataRewriteImprove RewriteImprove { get; set; } = new(); + + public DataPromptOptimizer PromptOptimizer { get; set; } = new(); + + public DataEMail EMail { get; set; } = new(); + + public DataSlideBuilder SlideBuilder { get; set; } = new(); + + public DataAssistantBuilder AssistantBuilder { get; set; } = new(); + + public DataVisualBriefing VisualBriefing { get; set; } = new(); + + public DataBeyondFactsLab BeyondFactsLab { get; set; } = new(); + + public DataModelComparison ModelComparison { get; set; } = new(); + + public DataLegalCheckV6 LegalCheck { get; set; } = new(); + + public DataSynonyms Synonyms { get; set; } = new(); + + public DataMyTasks MyTasks { get; set; } = new(); + + public DataJobPostings JobPostings { get; set; } = new(); + + public DataBiasOfTheDay BiasOfTheDay { get; set; } = new(); + + public DataI18N I18N { get; set; } = new(); + + public DataTools Tools { get; set; } = new(); +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataSourceSecurityTrustExtensions.cs b/app/MindWork AI Studio/Settings/DataSourceSecurityTrustExtensions.cs index cfbf0d1ca..e0036e964 100644 --- a/app/MindWork AI Studio/Settings/DataSourceSecurityTrustExtensions.cs +++ b/app/MindWork AI Studio/Settings/DataSourceSecurityTrustExtensions.cs @@ -132,7 +132,7 @@ public static class DataSourceSecurityTrustExtensions /// Unlike AllowsDataSourceConfidenceLevel, this closes a mailbox without an allowed level to every /// provider, whether it was never chosen or edited by hand in the settings file. Every provider /// which sees mail content has to pass it: the chat provider, the embedding provider, and the - /// provider of every agent reading mails. + /// provider of every AI task or agent which reads mails. /// public bool AllowsMailboxConfidenceLevel(ConfidenceLevel mailboxConfidenceLevel) { diff --git a/app/MindWork AI Studio/Settings/SettingsJsonContext.cs b/app/MindWork AI Studio/Settings/SettingsJsonContext.cs index e4df448ce..9ff7bc431 100644 --- a/app/MindWork AI Studio/Settings/SettingsJsonContext.cs +++ b/app/MindWork AI Studio/Settings/SettingsJsonContext.cs @@ -29,6 +29,7 @@ namespace AIStudio.Settings; [JsonSerializable(typeof(DataV1V3))] [JsonSerializable(typeof(DataV4))] [JsonSerializable(typeof(DataV5))] +[JsonSerializable(typeof(DataV6))] [JsonSerializable(typeof(ISet))] [JsonSerializable(typeof(ISet))] [JsonSerializable(typeof(ISet))] diff --git a/app/MindWork AI Studio/Settings/SettingsManager.cs b/app/MindWork AI Studio/Settings/SettingsManager.cs index 9206cbff7..c6db0c9bd 100644 --- a/app/MindWork AI Studio/Settings/SettingsManager.cs +++ b/app/MindWork AI Studio/Settings/SettingsManager.cs @@ -20,7 +20,7 @@ public sealed class SettingsManager public readonly record struct ToolMinimumProviderConfidenceResolution(ConfidenceLevel ConfidenceLevel, string Source); private const string SETTINGS_FILENAME = "settings.json"; - private const Version CURRENT_SETTINGS_VERSION = Version.V6; + private const Version CURRENT_SETTINGS_VERSION = Version.V7; private readonly record struct SettingsVersionReadResult(Version Version, SettingsWriteBlockReason FailureReason); @@ -186,11 +186,13 @@ public sealed class SettingsManager } this.logger.LogInformation("No valid current-version settings backup was found. Migrating the settings file."); - settingsData = SettingsMigrations.Migrate(this.logger, settingsVersion.Version, await File.ReadAllTextAsync(settingsPath), JSON_OPTIONS); + var settingsJson = await File.ReadAllTextAsync(settingsPath); + settingsData = SettingsMigrations.Migrate(this.logger, settingsVersion.Version, settingsJson, JSON_OPTIONS); // Compatibility shim, remove after 2027-10-31, see KeepTheLegacyEncryptionExportFormat. - // Settings of an older version always come from before the export format existed: - settingsData.App.EnterpriseEncryptionExportFormat = EnterpriseEncryptionFormat.V1; + // Settings up to version V5 come from before the export format existed, but settings of + // version V6 may hold it already: + KeepTheLegacyEncryptionExportFormat(settingsData, settingsJson); this.PrepareLoadedSettings(settingsData); await this.StoreSettingsSnapshot(settingsData, settingsPath); diff --git a/app/MindWork AI Studio/Settings/SettingsMigrations.cs b/app/MindWork AI Studio/Settings/SettingsMigrations.cs index fe68c85a4..cf2772f36 100644 --- a/app/MindWork AI Studio/Settings/SettingsMigrations.cs +++ b/app/MindWork AI Studio/Settings/SettingsMigrations.cs @@ -25,7 +25,8 @@ public static class SettingsMigrations configV1 = MigrateV2ToV3(logger, configV1); var configV14 = MigrateV3ToV4(logger, configV1); var configV15 = MigrateV4ToV5(logger, configV14); - return MigrateV5ToV6(logger, configV15); + var configV16 = MigrateV5ToV6(logger, configV15); + return MigrateV6ToV7(logger, configV16); case Version.V2: var configV2 = JsonSerializer.Deserialize(configData, jsonOptions); @@ -38,7 +39,8 @@ public static class SettingsMigrations configV2 = MigrateV2ToV3(logger, configV2); var configV24 = MigrateV3ToV4(logger, configV2); var configV25 = MigrateV4ToV5(logger, configV24); - return MigrateV5ToV6(logger, configV25); + var configV26 = MigrateV5ToV6(logger, configV25); + return MigrateV6ToV7(logger, configV26); case Version.V3: var configV3 = JsonSerializer.Deserialize(configData, jsonOptions); @@ -50,7 +52,8 @@ public static class SettingsMigrations var configV34 = MigrateV3ToV4(logger, configV3); var configV35 = MigrateV4ToV5(logger, configV34); - return MigrateV5ToV6(logger, configV35); + var configV36 = MigrateV5ToV6(logger, configV35); + return MigrateV6ToV7(logger, configV36); case Version.V4: var configV4 = JsonSerializer.Deserialize(configData, jsonOptions); @@ -61,7 +64,8 @@ public static class SettingsMigrations } var configV45 = MigrateV4ToV5(logger, configV4); - return MigrateV5ToV6(logger, configV45); + var configV46 = MigrateV5ToV6(logger, configV45); + return MigrateV6ToV7(logger, configV46); case Version.V5: var configV5 = JsonSerializer.Deserialize(configData, jsonOptions); @@ -71,18 +75,29 @@ public static class SettingsMigrations return new(); } - return MigrateV5ToV6(logger, configV5); + var configV56 = MigrateV5ToV6(logger, configV5); + return MigrateV6ToV7(logger, configV56); - default: - logger.LogInformation("No configuration migration is needed."); - var configV6 = JsonSerializer.Deserialize(configData, jsonOptions); + case Version.V6: + var configV6 = JsonSerializer.Deserialize(configData, jsonOptions); if (configV6 is null) { logger.LogError("Failed to parse the v6 configuration. Using default values."); return new(); } - return configV6; + return MigrateV6ToV7(logger, configV6); + + default: + logger.LogInformation("No configuration migration is needed."); + var configV7 = JsonSerializer.Deserialize(configData, jsonOptions); + if (configV7 is null) + { + logger.LogError("Failed to parse the v7 configuration. Using default values."); + return new(); + } + + return configV7; } } @@ -256,7 +271,7 @@ public static class SettingsMigrations }; } - private static Data MigrateV5ToV6(ILogger logger, DataV5 previousConfig) + private static DataV6 MigrateV5ToV6(ILogger logger, DataV5 previousConfig) { // // Summary: @@ -268,7 +283,7 @@ public static class SettingsMigrations { Version = Version.V6, Providers = previousConfig.Providers, - Confidence = new(x => x.Confidence) + Confidence = new() { EnforceGlobalMinimumConfidence = previousConfig.LLMProviders.EnforceGlobalMinimumConfidence, GlobalMinimumConfidence = previousConfig.LLMProviders.GlobalMinimumConfidence, @@ -319,4 +334,180 @@ public static class SettingsMigrations I18N = previousConfig.I18N, }; } + + /// + /// The names of the managed settings which changed with version V7, by their former names. + /// + /// + /// The keys of ManagedLockedConfigurations, ManagedEditableDefaults, and ManagedUserValueSnapshots + /// name a setting by its class and its property, so the former names of the AI tasks live on there. + /// + internal static readonly IReadOnlyDictionary MANAGED_SETTING_NAMES_V6_TO_V7 = new Dictionary + { + ["DataTextContentCleaner.PreselectAgentOptions"] = "DataTextContentCleaner.PreselectOptions", + ["DataTextContentCleaner.PreselectedAgentProvider"] = "DataTextContentCleaner.PreselectedProvider", + ["DataAgentDataSourceSelection.PreselectAgentOptions"] = "DataDataSourceSelection.PreselectOptions", + ["DataAgentDataSourceSelection.PreselectedAgentProvider"] = "DataDataSourceSelection.PreselectedProvider", + ["DataAgentDataSourceSelection.MinimumProviderConfidence"] = "DataDataSourceSelection.MinimumProviderConfidence", + ["DataAgentRetrievalContextValidation.EnableRetrievalContextValidation"] = "DataRetrievalContextValidation.EnableRetrievalContextValidation", + ["DataAgentRetrievalContextValidation.PreselectAgentOptions"] = "DataRetrievalContextValidation.PreselectOptions", + ["DataAgentRetrievalContextValidation.PreselectedAgentProvider"] = "DataRetrievalContextValidation.PreselectedProvider", + ["DataAgentRetrievalContextValidation.MinimumProviderConfidence"] = "DataRetrievalContextValidation.MinimumProviderConfidence", + ["DataAgentRetrievalContextValidation.NumParallelValidations"] = "DataRetrievalContextValidation.NumParallelValidations", + ["DataAssistantPluginAudit.PreselectedAgentProvider"] = "DataAssistantPluginAudit.PreselectedProvider", + }; + + private static Data MigrateV6ToV7(ILogger logger, DataV6 previousConfig) + { + // + // Summary: + // The background agents became AI tasks, so their settings no longer speak of agents: the data + // source selection and the retrieval context validation got new classes, and every AI task + // calls its options and its provider like the assistants do. The managed settings follow. + // + + logger.LogInformation("Migrating from v6 to v7..."); + return new() + { + Version = Version.V7, + Providers = previousConfig.Providers, + Confidence = previousConfig.Confidence, + DataSourceSecurity = previousConfig.DataSourceSecurity, + EmbeddingProviders = previousConfig.EmbeddingProviders, + TranscriptionProviders = previousConfig.TranscriptionProviders, + DataSources = previousConfig.DataSources, + Mailboxes = previousConfig.Mailboxes, + MailboxSettings = previousConfig.MailboxSettings, + Profiles = previousConfig.Profiles, + ChatTemplates = previousConfig.ChatTemplates, + EnabledPlugins = previousConfig.EnabledPlugins, + ManagedEditableDefaults = RenameManagedSettingsV6ToV7(previousConfig.ManagedEditableDefaults), + ManagedLockedConfigurations = RenameManagedSettingsV6ToV7(previousConfig.ManagedLockedConfigurations), + ManagedUserValueSnapshots = RenameManagedSettingsV6ToV7(previousConfig.ManagedUserValueSnapshots), + AssistantPluginAudits = previousConfig.AssistantPluginAudits, + AppliedEnterpriseAssistantActivations = previousConfig.AppliedEnterpriseAssistantActivations, + StoredDataPathsAreRelative = previousConfig.StoredDataPathsAreRelative, + NextProviderNum = previousConfig.NextProviderNum, + NextEmbeddingNum = previousConfig.NextEmbeddingNum, + NextTranscriptionNum = previousConfig.NextTranscriptionNum, + NextDataSourceNum = previousConfig.NextDataSourceNum, + NextProfileNum = previousConfig.NextProfileNum, + NextChatTemplateNum = previousConfig.NextChatTemplateNum, + NextDocumentAnalysisPolicyNum = previousConfig.NextDocumentAnalysisPolicyNum, + App = previousConfig.App, + Chat = previousConfig.Chat, + AssistantsPage = previousConfig.AssistantsPage, + Workspace = previousConfig.Workspace, + IconFinder = previousConfig.IconFinder, + Translation = new() + { + DebounceIntervalMilliseconds = previousConfig.Translation.DebounceIntervalMilliseconds, + PreselectOptions = previousConfig.Translation.PreselectOptions, + PreselectLiveTranslation = previousConfig.Translation.PreselectLiveTranslation, + HideWebContentReader = previousConfig.Translation.HideWebContentReader, + PreselectWebContentReader = previousConfig.Translation.PreselectWebContentReader, + PreselectContentCleaner = previousConfig.Translation.PreselectContentCleanerAgent, + PreselectedTargetLanguage = previousConfig.Translation.PreselectedTargetLanguage, + PreselectOtherLanguage = previousConfig.Translation.PreselectOtherLanguage, + MinimumProviderConfidence = previousConfig.Translation.MinimumProviderConfidence, + PreselectedProvider = previousConfig.Translation.PreselectedProvider, + }, + Coding = previousConfig.Coding, + ERI = previousConfig.ERI, + DocumentAnalysis = previousConfig.DocumentAnalysis, + BatchProcessing = previousConfig.BatchProcessing, + MandatoryInformation = previousConfig.MandatoryInformation, + TextSummarizer = new() + { + PreselectOptions = previousConfig.TextSummarizer.PreselectOptions, + HideWebContentReader = previousConfig.TextSummarizer.HideWebContentReader, + PreselectWebContentReader = previousConfig.TextSummarizer.PreselectWebContentReader, + PreselectContentCleaner = previousConfig.TextSummarizer.PreselectContentCleanerAgent, + PreselectedTargetLanguage = previousConfig.TextSummarizer.PreselectedTargetLanguage, + PreselectedOtherLanguage = previousConfig.TextSummarizer.PreselectedOtherLanguage, + PreselectedComplexity = previousConfig.TextSummarizer.PreselectedComplexity, + PreselectedExpertInField = previousConfig.TextSummarizer.PreselectedExpertInField, + PreselectedImportantAspects = previousConfig.TextSummarizer.PreselectedImportantAspects, + MinimumProviderConfidence = previousConfig.TextSummarizer.MinimumProviderConfidence, + PreselectedProvider = previousConfig.TextSummarizer.PreselectedProvider, + }, + SWOTAnalysis = new() + { + PreselectOptions = previousConfig.SWOTAnalysis.PreselectOptions, + HideWebContentReader = previousConfig.SWOTAnalysis.HideWebContentReader, + PreselectWebContentReader = previousConfig.SWOTAnalysis.PreselectWebContentReader, + PreselectContentCleaner = previousConfig.SWOTAnalysis.PreselectContentCleanerAgent, + PreselectedTargetLanguage = previousConfig.SWOTAnalysis.PreselectedTargetLanguage, + PreselectedOtherLanguage = previousConfig.SWOTAnalysis.PreselectedOtherLanguage, + PreselectedImportantAspects = previousConfig.SWOTAnalysis.PreselectedImportantAspects, + MinimumProviderConfidence = previousConfig.SWOTAnalysis.MinimumProviderConfidence, + PreselectedProvider = previousConfig.SWOTAnalysis.PreselectedProvider, + }, + TextContentCleaner = new(x => x.TextContentCleaner) + { + PreselectOptions = previousConfig.TextContentCleaner.PreselectAgentOptions, + PreselectedProvider = previousConfig.TextContentCleaner.PreselectedAgentProvider, + MinimumProviderConfidence = previousConfig.TextContentCleaner.MinimumProviderConfidence, + }, + DataSourceSelection = new(x => x.DataSourceSelection) + { + PreselectOptions = previousConfig.AgentDataSourceSelection.PreselectAgentOptions, + PreselectedProvider = previousConfig.AgentDataSourceSelection.PreselectedAgentProvider, + MinimumProviderConfidence = previousConfig.AgentDataSourceSelection.MinimumProviderConfidence, + }, + RetrievalContextValidation = new(x => x.RetrievalContextValidation) + { + EnableRetrievalContextValidation = previousConfig.AgentRetrievalContextValidation.EnableRetrievalContextValidation, + PreselectOptions = previousConfig.AgentRetrievalContextValidation.PreselectAgentOptions, + PreselectedProvider = previousConfig.AgentRetrievalContextValidation.PreselectedAgentProvider, + MinimumProviderConfidence = previousConfig.AgentRetrievalContextValidation.MinimumProviderConfidence, + NumParallelValidations = previousConfig.AgentRetrievalContextValidation.NumParallelValidations, + }, + AssistantPluginAudit = new(x => x.AssistantPluginAudit) + { + RequireAuditBeforeActivation = previousConfig.AssistantPluginAudit.RequireAuditBeforeActivation, + PreselectedProvider = previousConfig.AssistantPluginAudit.PreselectedAgentProvider, + MinimumProviderConfidence = previousConfig.AssistantPluginAudit.MinimumProviderConfidence, + MinimumLevel = previousConfig.AssistantPluginAudit.MinimumLevel, + BlockActivationBelowMinimum = previousConfig.AssistantPluginAudit.BlockActivationBelowMinimum, + AutomaticallyAuditAssistants = previousConfig.AssistantPluginAudit.AutomaticallyAuditAssistants, + EnterpriseApprovedPlugins = previousConfig.AssistantPluginAudit.EnterpriseApprovedPlugins, + }, + Agenda = previousConfig.Agenda, + GrammarSpelling = previousConfig.GrammarSpelling, + RewriteImprove = previousConfig.RewriteImprove, + PromptOptimizer = previousConfig.PromptOptimizer, + EMail = previousConfig.EMail, + SlideBuilder = previousConfig.SlideBuilder, + AssistantBuilder = previousConfig.AssistantBuilder, + VisualBriefing = previousConfig.VisualBriefing, + BeyondFactsLab = previousConfig.BeyondFactsLab, + ModelComparison = previousConfig.ModelComparison, + LegalCheck = new() + { + PreselectOptions = previousConfig.LegalCheck.PreselectOptions, + HideWebContentReader = previousConfig.LegalCheck.HideWebContentReader, + PreselectWebContentReader = previousConfig.LegalCheck.PreselectWebContentReader, + PreselectContentCleaner = previousConfig.LegalCheck.PreselectContentCleanerAgent, + MinimumProviderConfidence = previousConfig.LegalCheck.MinimumProviderConfidence, + PreselectedProvider = previousConfig.LegalCheck.PreselectedProvider, + PreselectedProfile = previousConfig.LegalCheck.PreselectedProfile, + }, + Synonyms = previousConfig.Synonyms, + MyTasks = previousConfig.MyTasks, + JobPostings = previousConfig.JobPostings, + BiasOfTheDay = previousConfig.BiasOfTheDay, + I18N = previousConfig.I18N, + Tools = previousConfig.Tools, + }; + } + + private static Dictionary RenameManagedSettingsV6ToV7(Dictionary managedStates) + { + var renamedStates = new Dictionary(managedStates.Count); + foreach (var (settingName, state) in managedStates) + renamedStates[MANAGED_SETTING_NAMES_V6_TO_V7.GetValueOrDefault(settingName, settingName)] = state; + + return renamedStates; + } } \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/Version.cs b/app/MindWork AI Studio/Settings/Version.cs index a09ff20ce..6fcc79a2f 100644 --- a/app/MindWork AI Studio/Settings/Version.cs +++ b/app/MindWork AI Studio/Settings/Version.cs @@ -14,4 +14,5 @@ public enum Version V4, V5, V6, + V7, } \ No newline at end of file diff --git a/app/MindWork AI Studio/Tools/Components.cs b/app/MindWork AI Studio/Tools/Components.cs index 102b673db..ca6b2578d 100644 --- a/app/MindWork AI Studio/Tools/Components.cs +++ b/app/MindWork AI Studio/Tools/Components.cs @@ -36,10 +36,10 @@ public enum Components WRITER, APP_SETTINGS, - AGENT_TEXT_CONTENT_CLEANER, - AGENT_DATA_SOURCE_SELECTION, - AGENT_RETRIEVAL_CONTEXT_VALIDATION, - AGENT_ASSISTANT_PLUGIN_AUDIT, + AI_TASK_TEXT_CONTENT_CLEANER, + AI_TASK_DATA_SOURCE_SELECTION, + AI_TASK_RETRIEVAL_CONTEXT_VALIDATION, + AI_TASK_ASSISTANT_PLUGIN_AUDIT, LOG_VIEWER_ASSISTANT, VISUAL_BRIEFING_ASSISTANT, BATCH_PROCESSING_ASSISTANT, diff --git a/app/MindWork AI Studio/Tools/ComponentsExtensions.cs b/app/MindWork AI Studio/Tools/ComponentsExtensions.cs index 3cab80380..a1dba572e 100644 --- a/app/MindWork AI Studio/Tools/ComponentsExtensions.cs +++ b/app/MindWork AI Studio/Tools/ComponentsExtensions.cs @@ -123,10 +123,10 @@ public static class ComponentsExtensions Components.APP_SETTINGS => false, Components.WRITER => false, - Components.AGENT_TEXT_CONTENT_CLEANER => false, - Components.AGENT_DATA_SOURCE_SELECTION => false, - Components.AGENT_RETRIEVAL_CONTEXT_VALIDATION => false, - Components.AGENT_ASSISTANT_PLUGIN_AUDIT => false, + Components.AI_TASK_TEXT_CONTENT_CLEANER => false, + Components.AI_TASK_DATA_SOURCE_SELECTION => false, + Components.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION => false, + Components.AI_TASK_ASSISTANT_PLUGIN_AUDIT => false, Components.META_ASSISTANT => false, _ => true, @@ -223,10 +223,10 @@ public static class ComponentsExtensions Components.BATCH_PROCESSING_ASSISTANT => settingsManager.ConfigurationData.BatchProcessing.PreselectOptions ? settingsManager.ConfigurationData.BatchProcessing.MinimumProviderConfidence : default, Components.MODEL_COMPARISON_ASSISTANT => settingsManager.ConfigurationData.ModelComparison.PreselectOptions ? settingsManager.ConfigurationData.ModelComparison.MinimumProviderConfidence : default, - Components.AGENT_TEXT_CONTENT_CLEANER => settingsManager.ConfigurationData.TextContentCleaner.PreselectAgentOptions ? settingsManager.ConfigurationData.TextContentCleaner.MinimumProviderConfidence : default, - Components.AGENT_DATA_SOURCE_SELECTION => settingsManager.ConfigurationData.AgentDataSourceSelection.PreselectAgentOptions ? settingsManager.ConfigurationData.AgentDataSourceSelection.MinimumProviderConfidence : default, - Components.AGENT_RETRIEVAL_CONTEXT_VALIDATION => settingsManager.ConfigurationData.AgentRetrievalContextValidation.PreselectAgentOptions ? settingsManager.ConfigurationData.AgentRetrievalContextValidation.MinimumProviderConfidence : default, - Components.AGENT_ASSISTANT_PLUGIN_AUDIT => settingsManager.ConfigurationData.AssistantPluginAudit.MinimumProviderConfidence, + Components.AI_TASK_TEXT_CONTENT_CLEANER => settingsManager.ConfigurationData.TextContentCleaner.PreselectOptions ? settingsManager.ConfigurationData.TextContentCleaner.MinimumProviderConfidence : default, + Components.AI_TASK_DATA_SOURCE_SELECTION => settingsManager.ConfigurationData.DataSourceSelection.PreselectOptions ? settingsManager.ConfigurationData.DataSourceSelection.MinimumProviderConfidence : default, + Components.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION => settingsManager.ConfigurationData.RetrievalContextValidation.PreselectOptions ? settingsManager.ConfigurationData.RetrievalContextValidation.MinimumProviderConfidence : default, + Components.AI_TASK_ASSISTANT_PLUGIN_AUDIT => settingsManager.ConfigurationData.AssistantPluginAudit.MinimumProviderConfidence, _ => default, }; diff --git a/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/AssistantWebContentReader.cs b/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/AssistantWebContentReader.cs index 35ff79200..af173eec6 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/AssistantWebContentReader.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/AssistantWebContentReader.cs @@ -14,10 +14,10 @@ internal sealed class AssistantWebContentReader : StatefulAssistantComponentBase set => this.Props[nameof(this.Preselect)] = value; } - public bool PreselectContentCleanerAgent + public bool PreselectContentCleaner { - get => this.Props.TryGetValue(nameof(this.PreselectContentCleanerAgent), out var v) && v is true; - set => this.Props[nameof(this.PreselectContentCleanerAgent)] = value; + get => this.Props.TryGetValue(nameof(this.PreselectContentCleaner), out var v) && v is true; + set => this.Props[nameof(this.PreselectContentCleaner)] = value; } public string Class @@ -41,7 +41,7 @@ internal sealed class AssistantWebContentReader : StatefulAssistantComponentBase state.WebContent[this.Name] = new WebContentState { Preselect = this.Preselect, - PreselectContentCleanerAgent = this.PreselectContentCleanerAgent, + PreselectContentCleaner = this.PreselectContentCleaner, }; } } diff --git a/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/ComponentPropSpecs.cs b/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/ComponentPropSpecs.cs index ee0d1198c..6e161a8a1 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/ComponentPropSpecs.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/ComponentPropSpecs.cs @@ -77,8 +77,13 @@ public static class ComponentPropSpecs ), [AssistantComponentType.WEB_CONTENT_READER] = new( required: ["Name"], - optional: ["UserPrompt", "Preselect", "PreselectContentCleanerAgent", "Class", "Style"], - nonWriteable: ["Name", "UserPrompt", "Class", "Style" ] + optional: ["UserPrompt", "Preselect", "PreselectContentCleaner", "Class", "Style"], + nonWriteable: ["Name", "UserPrompt", "Class", "Style" ], + formerNames: new Dictionary + { + // The name before v26.11.2, when the content cleaner was called an agent: + ["PreselectContentCleanerAgent"] = "PreselectContentCleaner", + } ), [AssistantComponentType.FILE_CONTENT_READER] = new( required: ["Name"], diff --git a/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/PropSpec.cs b/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/PropSpec.cs index 6a9385b4d..4b16408ad 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/PropSpec.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/PropSpec.cs @@ -1,5 +1,7 @@ using System.Collections.Immutable; +using Lua; + namespace AIStudio.Tools.PluginSystem.Assistants.DataModel; public class PropSpec( @@ -7,7 +9,8 @@ public class PropSpec( IEnumerable optional, IEnumerable? nonReadable = null, IEnumerable? nonWriteable = null, - IEnumerable? confidential = null) + IEnumerable? confidential = null, + IReadOnlyDictionary? formerNames = null) { public ImmutableArray Required { get; } = MaterializeDistinct(required); public ImmutableArray Optional { get; } = MaterializeDistinct(optional); @@ -15,6 +18,56 @@ public class PropSpec( public ImmutableArray NonReadable { get; } = MaterializeDistinct((nonReadable ?? []).Concat(confidential ?? [])); public ImmutableArray NonWriteable { get; } = MaterializeDistinct((nonWriteable ?? []).Concat(confidential ?? [])); + /// + /// The current name of each prop which had another name before, by that former name. + /// + /// + /// Plugins keep using a former name for good, also in the props their callbacks return: a plugin + /// which changes it needs a new security audit. When a plugin uses both names, the current one + /// wins. Callbacks see a prop under its current name only. + /// + public ImmutableDictionary FormerNames { get; } = (formerNames ?? ImmutableDictionary.Empty).ToImmutableDictionary(StringComparer.Ordinal); + + /// + /// Reads a prop from the props of a component, under its current name or under a former name + /// which the plugin still uses. + /// + /// The props of the component, as the plugin defines them. + /// The current name of the prop. + /// The value of the prop, when the plugin defines it. + /// True, when the plugin defines the prop. + public bool TryGetValue(LuaTable propsTable, string name, out LuaValue value) + { + if (propsTable.TryGetValue(name, out value)) + return true; + + foreach (var (formerName, currentName) in this.FormerNames) + if (string.Equals(currentName, name, StringComparison.Ordinal) && propsTable.TryGetValue(formerName, out value)) + return true; + + return false; + } + + /// + /// Determines the current name of a prop which a plugin names in its props, e.g., in an update + /// a callback returns. + /// + /// The name the plugin uses. + /// The props in which the plugin uses the name. + /// The current name of the prop. It is the given name, unless that is a former one. + /// False, when the plugin uses a former name next to the current one, which wins. + public bool TryGetCurrentName(string name, LuaTable propsTable, out string currentName) + { + if (!this.FormerNames.TryGetValue(name, out var nameAfterRenaming)) + { + currentName = name; + return true; + } + + currentName = nameAfterRenaming; + return !propsTable.TryGetValue(currentName, out _); + } + private static ImmutableArray MaterializeDistinct(IEnumerable source) { return source.Distinct(StringComparer.Ordinal).ToImmutableArray(); diff --git a/app/MindWork AI Studio/Tools/PluginSystem/Assistants/PluginAssistants.cs b/app/MindWork AI Studio/Tools/PluginSystem/Assistants/PluginAssistants.cs index 5b8cde855..a6f379fa0 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/Assistants/PluginAssistants.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/Assistants/PluginAssistants.cs @@ -769,7 +769,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType foreach (var key in spec.Required) { - if (!propsTable.TryGetValue(key, out var luaVal)) + if (!spec.TryGetValue(propsTable, key, out var luaVal)) { LOGGER.LogWarning($"Component {type} missing required prop '{key}'."); return false; @@ -784,7 +784,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType foreach (var key in spec.Optional) { - if (!propsTable.TryGetValue(key, out var luaVal)) + if (!spec.TryGetValue(propsTable, key, out var luaVal)) continue; if (!this.TryConvertComponentPropValue(type, key, luaVal, out var dotNetVal)) diff --git a/app/MindWork AI Studio/Tools/PluginSystem/FormerSettingNames.cs b/app/MindWork AI Studio/Tools/PluginSystem/FormerSettingNames.cs new file mode 100644 index 000000000..c2425ea53 --- /dev/null +++ b/app/MindWork AI Studio/Tools/PluginSystem/FormerSettingNames.cs @@ -0,0 +1,94 @@ +using Lua; + +namespace AIStudio.Tools.PluginSystem; + +/// +/// Reads seven settings of the AI tasks under the names they had in AI Studio v26.11.1. +/// +/// +/// Compatibility shim, remove after 2027-05-26, see documentation/compatibility-shims/2026-11-ai-task-setting-names.md. +/// Version v26.11.2 took the word "agent" out of the names of these settings. An organization rolls out a +/// new version over weeks, and devices with v26.11.1 read only the former names. A configuration plugin +/// therefore keeps the former names meanwhile, or sets both. +/// +public static class FormerSettingNames +{ + private const string USER_OVERRIDE_SUFFIX = ".AllowUserOverride"; + + private static readonly ILogger LOG = Program.LOGGER_FACTORY.CreateLogger(nameof(FormerSettingNames)); + + /// + /// The current name of each setting, by the name it had in AI Studio v26.11.1. + /// + /// + /// The settings of the AI tasks which came after v26.11.1 have no former name here, because no + /// released version knew them. + /// + internal static readonly IReadOnlyDictionary CURRENT_NAMES = new Dictionary(StringComparer.Ordinal) + { + ["DataAgentDataSourceSelection.PreselectAgentOptions"] = "DataDataSourceSelection.PreselectOptions", + ["DataAgentDataSourceSelection.PreselectedAgentProvider"] = "DataDataSourceSelection.PreselectedProvider", + ["DataAgentRetrievalContextValidation.EnableRetrievalContextValidation"] = "DataRetrievalContextValidation.EnableRetrievalContextValidation", + ["DataAgentRetrievalContextValidation.PreselectAgentOptions"] = "DataRetrievalContextValidation.PreselectOptions", + ["DataAgentRetrievalContextValidation.PreselectedAgentProvider"] = "DataRetrievalContextValidation.PreselectedProvider", + ["DataAgentRetrievalContextValidation.NumParallelValidations"] = "DataRetrievalContextValidation.NumParallelValidations", + ["DataAssistantPluginAudit.PreselectedAgentProvider"] = "DataAssistantPluginAudit.PreselectedProvider", + }; + + /// + /// Copies the SETTINGS table of a configuration plugin and gives every setting it sets under a + /// former name its current name. + /// + /// + /// A former name covers its .AllowUserOverride companion as well. When a plugin sets a + /// setting under both names, as it does while the devices of an organization run both versions, + /// the current name wins and the former one is left out. + /// + /// The SETTINGS table of the plugin. + /// The name of the plugin, for the log. + /// Whether to log a hint for each setting which the plugin sets under its former name only. + /// A new table, which holds every setting under its current name. + public static LuaTable Resolve(LuaTable settingsTable, string pluginName, bool logHints) + { + var resolvedTable = new LuaTable(); + var previousKey = LuaValue.Nil; + while (settingsTable.TryGetNext(previousKey, out var pair)) + { + previousKey = pair.Key; + if (!pair.Key.TryRead(out var settingName) || !TryGetCurrentName(settingName, out var currentName)) + { + resolvedTable[pair.Key] = pair.Value; + continue; + } + + if (settingsTable.TryGetValue(currentName, out _)) + continue; + + resolvedTable[currentName] = pair.Value; + if (logHints && !settingName.EndsWith(USER_OVERRIDE_SUFFIX, StringComparison.Ordinal)) + LOG.LogWarning($"The configuration plugin '{pluginName}' sets '{settingName}', the name of the setting '{currentName}' before AI Studio v26.11.2. AI Studio reads the former name until May 2027. Set the setting under both names until every device runs v26.11.2 or newer, then under its new name only."); + } + + return resolvedTable; + } + + /// + /// Looks up the current name of a setting by its former name, the .AllowUserOverride companion included. + /// + /// The name the plugin uses. + /// The current name, when the plugin uses a former name; otherwise empty. + /// True, when the plugin uses a former name. + private static bool TryGetCurrentName(string settingName, out string currentName) + { + var isUserOverride = settingName.EndsWith(USER_OVERRIDE_SUFFIX, StringComparison.Ordinal); + var baseName = isUserOverride ? settingName[..^USER_OVERRIDE_SUFFIX.Length] : settingName; + if (!CURRENT_NAMES.TryGetValue(baseName, out var currentBaseName)) + { + currentName = string.Empty; + return false; + } + + currentName = isUserOverride ? $"{currentBaseName}{USER_OVERRIDE_SUFFIX}" : currentBaseName; + return true; + } +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginConfiguration.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginConfiguration.cs index a20e12956..36bff77cd 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginConfiguration.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginConfiguration.cs @@ -227,6 +227,10 @@ public sealed class PluginConfiguration(bool isInternal, LuaState state, PluginT return false; } + // Compatibility shim, remove after 2027-05-26, see FormerSettingNames. Everything below reads the + // settings under their current names only: + settingsTable = FormerSettingNames.Resolve(settingsTable, this.Name, !dryRun); + if (!TryValidateMinimumProviderConfidenceConfiguration(settingsTable, out message)) return false; @@ -409,25 +413,25 @@ public sealed class PluginConfiguration(bool isInternal, LuaState state, PluginT LOG.LogWarning("The upper bound of the pause between indexing steps configured by plugin {ConfigPluginId} is below its lower bound. The lower bound of {MinimumPauseSeconds} seconds wins.", this.Id, minimumPauseSeconds); // Config: text content cleaner settings - ManagedConfiguration.TryProcessConfiguration(x => x.TextContentCleaner, x => x.PreselectAgentOptions, this.Id, settingsTable, dryRun); - ManagedConfiguration.TryProcessConfiguration(x => x.TextContentCleaner, x => x.PreselectedAgentProvider, Guid.Empty, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.TextContentCleaner, x => x.PreselectOptions, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.TextContentCleaner, x => x.PreselectedProvider, Guid.Empty, this.Id, settingsTable, dryRun); ManagedConfiguration.TryProcessConfiguration(x => x.TextContentCleaner, x => x.MinimumProviderConfidence, this.Id, settingsTable, dryRun); // Config: data source selection settings - ManagedConfiguration.TryProcessConfiguration(x => x.AgentDataSourceSelection, x => x.PreselectAgentOptions, this.Id, settingsTable, dryRun); - ManagedConfiguration.TryProcessConfiguration(x => x.AgentDataSourceSelection, x => x.PreselectedAgentProvider, Guid.Empty, this.Id, settingsTable, dryRun); - ManagedConfiguration.TryProcessConfiguration(x => x.AgentDataSourceSelection, x => x.MinimumProviderConfidence, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.DataSourceSelection, x => x.PreselectOptions, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.DataSourceSelection, x => x.PreselectedProvider, Guid.Empty, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.DataSourceSelection, x => x.MinimumProviderConfidence, this.Id, settingsTable, dryRun); // Config: retrieval context validation settings - ManagedConfiguration.TryProcessConfiguration(x => x.AgentRetrievalContextValidation, x => x.EnableRetrievalContextValidation, this.Id, settingsTable, dryRun); - ManagedConfiguration.TryProcessConfiguration(x => x.AgentRetrievalContextValidation, x => x.PreselectAgentOptions, this.Id, settingsTable, dryRun); - ManagedConfiguration.TryProcessConfiguration(x => x.AgentRetrievalContextValidation, x => x.PreselectedAgentProvider, Guid.Empty, this.Id, settingsTable, dryRun); - ManagedConfiguration.TryProcessConfiguration(x => x.AgentRetrievalContextValidation, x => x.MinimumProviderConfidence, this.Id, settingsTable, dryRun); - ManagedConfiguration.TryProcessConfiguration(x => x.AgentRetrievalContextValidation, x => x.NumParallelValidations, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.RetrievalContextValidation, x => x.EnableRetrievalContextValidation, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.RetrievalContextValidation, x => x.PreselectOptions, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.RetrievalContextValidation, x => x.PreselectedProvider, Guid.Empty, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.RetrievalContextValidation, x => x.MinimumProviderConfidence, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.RetrievalContextValidation, x => x.NumParallelValidations, this.Id, settingsTable, dryRun); // Config: assistant plugin audit settings ManagedConfiguration.TryProcessConfiguration(x => x.AssistantPluginAudit, x => x.RequireAuditBeforeActivation, this.Id, settingsTable, dryRun); - ManagedConfiguration.TryProcessConfiguration(x => x.AssistantPluginAudit, x => x.PreselectedAgentProvider, Guid.Empty, this.Id, settingsTable, dryRun); + ManagedConfiguration.TryProcessConfiguration(x => x.AssistantPluginAudit, x => x.PreselectedProvider, Guid.Empty, this.Id, settingsTable, dryRun); ManagedConfiguration.TryProcessConfiguration(x => x.AssistantPluginAudit, x => x.MinimumProviderConfidence, this.Id, settingsTable, dryRun); ManagedConfiguration.TryProcessConfiguration(x => x.AssistantPluginAudit, x => x.MinimumLevel, this.Id, settingsTable, dryRun); ManagedConfiguration.TryProcessConfiguration(x => x.AssistantPluginAudit, x => x.BlockActivationBelowMinimum, this.Id, settingsTable, dryRun); diff --git a/app/MindWork AI Studio/Tools/RAG/AugmentationProcesses/AugmentationOne.cs b/app/MindWork AI Studio/Tools/RAG/AugmentationProcesses/AugmentationOne.cs index 1bd2e8327..59b154f3d 100644 --- a/app/MindWork AI Studio/Tools/RAG/AugmentationProcesses/AugmentationOne.cs +++ b/app/MindWork AI Studio/Tools/RAG/AugmentationProcesses/AugmentationOne.cs @@ -53,7 +53,7 @@ public sealed class AugmentationOne : IAugmentationProcess var usedContexts = preparedContexts; // Want the user to validate all retrieval contexts? - if (settings.ConfigurationData.AgentRetrievalContextValidation.EnableRetrievalContextValidation && chatThread.DataSourceOptions.AutomaticValidation) + if (settings.ConfigurationData.RetrievalContextValidation.EnableRetrievalContextValidation && chatThread.DataSourceOptions.AutomaticValidation) { // // Which provider validates? Only one which may see what the chat may see: the model reads diff --git a/app/MindWork AI Studio/Tools/RAG/DataSourceSelectionProcesses/AgenticSrcSelWithDynHeur.cs b/app/MindWork AI Studio/Tools/RAG/DataSourceSelectionProcesses/AISrcSelWithDynHeur.cs similarity index 92% rename from app/MindWork AI Studio/Tools/RAG/DataSourceSelectionProcesses/AgenticSrcSelWithDynHeur.cs rename to app/MindWork AI Studio/Tools/RAG/DataSourceSelectionProcesses/AISrcSelWithDynHeur.cs index 7983bcd89..5fbf11d37 100644 --- a/app/MindWork AI Studio/Tools/RAG/DataSourceSelectionProcesses/AgenticSrcSelWithDynHeur.cs +++ b/app/MindWork AI Studio/Tools/RAG/DataSourceSelectionProcesses/AISrcSelWithDynHeur.cs @@ -8,19 +8,19 @@ using AIStudio.Tools.PluginSystem; namespace AIStudio.Tools.RAG.DataSourceSelectionProcesses; -public class AgenticSrcSelWithDynHeur : IDataSourceSelectionProcess +public class AISrcSelWithDynHeur : IDataSourceSelectionProcess { - private static readonly ILogger LOGGER = Program.LOGGER_FACTORY.CreateLogger(); + private static readonly ILogger LOGGER = Program.LOGGER_FACTORY.CreateLogger(); - private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(AgenticSrcSelWithDynHeur).Namespace, nameof(AgenticSrcSelWithDynHeur)); + private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(AISrcSelWithDynHeur).Namespace, nameof(AISrcSelWithDynHeur)); #region Implementation of IDataSourceSelectionProcess /// - public string TechnicalName => "AgenticSrcSelWithDynHeur"; + public string TechnicalName => "AISrcSelWithDynHeur"; /// - public string UIName => TB("Automatic AI data source selection with heuristik source reduction"); + public string UIName => TB("Automatic AI data source selection with heuristic source reduction"); /// public string Description => TB("Automatically selects the appropriate data sources based on the last prompt. Applies a heuristic reduction at the end to reduce the number of data sources."); @@ -30,7 +30,7 @@ public class AgenticSrcSelWithDynHeur : IDataSourceSelectionProcess { var proceedWithRAG = true; IReadOnlyList selectedDataSources = []; - IReadOnlyList finalAISelection = []; + IReadOnlyList finalAISelection = []; var choiceOperation = Program.SERVICE_PROVIDER.GetRequiredService(); var providerResolver = Program.SERVICE_PROVIDER.GetRequiredService(); @@ -87,7 +87,7 @@ public class AgenticSrcSelWithDynHeur : IDataSourceSelectionProcess aiSelectedDataSources = aiSelectedDataSources.Where(x => allowedDataSources.ContainsKey(x.Id)).ToList(); // Store the real AI-selected data sources: - finalAISelection = aiSelectedDataSources.Select(x => new DataSourceAgentSelected { DataSource = allowedDataSources[x.Id], AIDecision = x, Selected = false }).ToList(); + finalAISelection = aiSelectedDataSources.Select(x => new DataSourceAISelected { DataSource = allowedDataSources[x.Id], AIDecision = x, Selected = false }).ToList(); var numHallucinatedSources = totalAISelectedDataSources - aiSelectedDataSources.Count; if (numHallucinatedSources > 0) diff --git a/app/MindWork AI Studio/Tools/RAG/RAGProcesses/AISrcSelWithRetCtxVal.cs b/app/MindWork AI Studio/Tools/RAG/RAGProcesses/AISrcSelWithRetCtxVal.cs index 92ac5ec90..eb806d583 100644 --- a/app/MindWork AI Studio/Tools/RAG/RAGProcesses/AISrcSelWithRetCtxVal.cs +++ b/app/MindWork AI Studio/Tools/RAG/RAGProcesses/AISrcSelWithRetCtxVal.cs @@ -120,7 +120,7 @@ public sealed class AISrcSelWithRetCtxVal : IRagProcess // if (chatThread.DataSourceOptions.AutomaticDataSourceSelection) { - var dataSourceSelectionProcess = new AgenticSrcSelWithDynHeur(); + var dataSourceSelectionProcess = new AISrcSelWithDynHeur(); var result = await dataSourceSelectionProcess.SelectDataSourcesAsync(provider, lastUserPrompt, chatThread, dataSources, token); proceedWithRAG = result.ProceedWithRAG; selectedDataSources = result.SelectedDataSources; diff --git a/app/MindWork AI Studio/Tools/Services/DataSourceService.cs b/app/MindWork AI Studio/Tools/Services/DataSourceService.cs index 4c323f0d7..2f6a20018 100644 --- a/app/MindWork AI Studio/Tools/Services/DataSourceService.cs +++ b/app/MindWork AI Studio/Tools/Services/DataSourceService.cs @@ -133,7 +133,7 @@ public sealed class DataSourceService private IReadOnlyList GetParticipatingProviders(string currentProviderId, DataSourceOptions dataSourceOptions, DataSourceRetrievalMode retrievalMode, ParticipatingProvider currentProvider) { var providers = new List { currentProvider }; - var retrievalContextValidationEnabled = this.settingsManager.ConfigurationData.AgentRetrievalContextValidation.EnableRetrievalContextValidation; + var retrievalContextValidationEnabled = this.settingsManager.ConfigurationData.RetrievalContextValidation.EnableRetrievalContextValidation; foreach (var (component, role) in GetParticipatingOperations(dataSourceOptions, retrievalMode, retrievalContextValidationEnabled)) this.AddOperationProvider(providers, component, currentProviderId, role); @@ -160,10 +160,10 @@ public sealed class DataSourceService var operations = new List<(Components Component, string Role)>(2); if (dataSourceOptions.AutomaticDataSourceSelection) - operations.Add((Components.AGENT_DATA_SOURCE_SELECTION, "data source selection")); + operations.Add((Components.AI_TASK_DATA_SOURCE_SELECTION, "data source selection")); if (dataSourceOptions.AutomaticValidation && retrievalContextValidationEnabled) - operations.Add((Components.AGENT_RETRIEVAL_CONTEXT_VALIDATION, "retrieval context validation")); + operations.Add((Components.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION, "retrieval context validation")); return operations; } @@ -180,8 +180,8 @@ public sealed class DataSourceService { var operationSettings = component switch { - Components.AGENT_DATA_SOURCE_SELECTION => DataSourceChoiceOperation.GetProviderSettings(this.settingsManager), - Components.AGENT_RETRIEVAL_CONTEXT_VALIDATION => RetrievalContextValidationOperation.GetProviderSettings(this.settingsManager), + Components.AI_TASK_DATA_SOURCE_SELECTION => DataSourceChoiceOperation.GetProviderSettings(this.settingsManager), + Components.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION => RetrievalContextValidationOperation.GetProviderSettings(this.settingsManager), _ => AIOperationProviderSettings.NONE, }; diff --git a/app/MindWork AI Studio/wwwroot/changelog/v26.11.2.md b/app/MindWork AI Studio/wwwroot/changelog/v26.11.2.md index f2ad7a435..d5427e249 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v26.11.2.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v26.11.2.md @@ -36,6 +36,9 @@ - Improved the Flatpak version of AI Studio for Linux: it now runs on the GNOME 51 runtime, ships the same up-to-date version of .NET, and is built with the same up-to-date version of Rust as all other versions of AI Studio. - Improved the Mathematics prototype: it takes more limits correctly, answers more equations within its time limit, and finds all solutions of equations with infinitely many, such as sin(x) = 1/2. The AI still gets a single value as well, such as the years in which a sum doubles. - Changed the icons of AI Studio to Lucide, an open-source icon set. All icons now share one style, and each feature shows the same icon wherever you meet it. +- Changed the names of the settings of the AI tasks in configuration plugins, which no longer speak of agents: `DataAgentDataSourceSelection` is now `DataDataSourceSelection`, `DataAgentRetrievalContextValidation` is now `DataRetrievalContextValidation`, `PreselectAgentOptions` is now `PreselectOptions`, and `PreselectedAgentProvider` is now `PreselectedProvider`. AI Studio still reads the names of v26.11.1 at least until May 2027 and names the new one in its log. Until every computer in your organization runs this version, set both names, since older versions know only the former ones. +- Changed how requests to self-hosted servers name the AI tasks, when your organization lets these requests name the feature which sent them: the User-Agent now says `Component/AI_TASK_…` instead of `Component/AGENT_…`, e.g., `Component/AI_TASK_DATA_SOURCE_SELECTION`. If you filter the logs of your servers by these names, adjust your filters. +- Changed the option `PreselectContentCleanerAgent` of the web content reader in assistant plugins to `PreselectContentCleaner`. Existing plugins need no change, because AI Studio still reads the former name. - Fixed assistant plugins, which all appeared under "Installed Assistants" on the assistants page. Each one now appears under its own category, such as "Business", next to the built-in assistants of that category. - Fixed the Assistant Builder, which ignored the category you chose for your assistant. You can now also name a category of your own. - Fixed assistant plugins which wrote numbers and dates according to the region settings of your computer. Plugins now show them the same way on every computer: a decimal number such as `12.5` keeps its point, and the `DateTime` helper writes the names of months in English. diff --git a/app/Tests/AIOperations/DataSourceChoiceProviderTests.cs b/app/Tests/AIOperations/DataSourceChoiceProviderTests.cs index a2d2dd132..44fe14445 100644 --- a/app/Tests/AIOperations/DataSourceChoiceProviderTests.cs +++ b/app/Tests/AIOperations/DataSourceChoiceProviderTests.cs @@ -113,8 +113,8 @@ public sealed class DataSourceChoiceProviderTests var settingsManager = CreateSettingsManager(); AddProvider(settingsManager, CHAT_PROVIDER_ID, LLMProviders.OPEN_AI); AddProvider(settingsManager, OWN_PROVIDER_ID, LLMProviders.MISTRAL); - settingsManager.ConfigurationData.AgentDataSourceSelection.PreselectAgentOptions = true; - settingsManager.ConfigurationData.AgentDataSourceSelection.MinimumProviderConfidence = ConfidenceLevel.HIGH; + settingsManager.ConfigurationData.DataSourceSelection.PreselectOptions = true; + settingsManager.ConfigurationData.DataSourceSelection.MinimumProviderConfidence = ConfidenceLevel.HIGH; var choice = Choose(settingsManager, [OpenServer()]); @@ -124,13 +124,13 @@ public sealed class DataSourceChoiceProviderTests private static AIOperationProviderChoice Choose(SettingsManager settingsManager, IReadOnlyList dataSources) { var resolver = new AIOperationProviderResolver(settingsManager, NullLogger.Instance); - return resolver.Preview(DataSourceChoiceOperation.GetProviderSettings(settingsManager), dataSources.GetRequiredConfidenceLevel(), AgenticSrcSelWithDynHeur.GetChoiceProviderOptions(settingsManager, CHAT_PROVIDER_ID, dataSources)); + return resolver.Preview(DataSourceChoiceOperation.GetProviderSettings(settingsManager), dataSources.GetRequiredConfidenceLevel(), AISrcSelWithDynHeur.GetChoiceProviderOptions(settingsManager, CHAT_PROVIDER_ID, dataSources)); } private static void PickOwnProvider(SettingsManager settingsManager) { - settingsManager.ConfigurationData.AgentDataSourceSelection.PreselectAgentOptions = true; - settingsManager.ConfigurationData.AgentDataSourceSelection.PreselectedAgentProvider = OWN_PROVIDER_ID; + settingsManager.ConfigurationData.DataSourceSelection.PreselectOptions = true; + settingsManager.ConfigurationData.DataSourceSelection.PreselectedProvider = OWN_PROVIDER_ID; } private static IDataSource OpenServer() => new DataSourceERI_V1 diff --git a/app/Tests/AIOperations/PluginAuditProviderTests.cs b/app/Tests/AIOperations/PluginAuditProviderTests.cs index 46a57dadf..de8043fcf 100644 --- a/app/Tests/AIOperations/PluginAuditProviderTests.cs +++ b/app/Tests/AIOperations/PluginAuditProviderTests.cs @@ -39,7 +39,7 @@ public sealed class PluginAuditProviderTests AddProvider(settingsManager, AUDIT_PROVIDER_ID, LLMProviders.MISTRAL); AddProvider(settingsManager, APP_DEFAULT_PROVIDER_ID, LLMProviders.OPEN_AI); settingsManager.ConfigurationData.App.PreselectedProvider = APP_DEFAULT_PROVIDER_ID; - settingsManager.ConfigurationData.AssistantPluginAudit.PreselectedAgentProvider = AUDIT_PROVIDER_ID; + settingsManager.ConfigurationData.AssistantPluginAudit.PreselectedProvider = AUDIT_PROVIDER_ID; var choice = Choose(settingsManager, null); diff --git a/app/Tests/AIOperations/RetrievalContextValidationProviderTests.cs b/app/Tests/AIOperations/RetrievalContextValidationProviderTests.cs index ed74b4d5a..9e167460e 100644 --- a/app/Tests/AIOperations/RetrievalContextValidationProviderTests.cs +++ b/app/Tests/AIOperations/RetrievalContextValidationProviderTests.cs @@ -78,8 +78,8 @@ public sealed class RetrievalContextValidationProviderTests private static void PickOwnProvider(SettingsManager settingsManager) { - settingsManager.ConfigurationData.AgentRetrievalContextValidation.PreselectAgentOptions = true; - settingsManager.ConfigurationData.AgentRetrievalContextValidation.PreselectedAgentProvider = OWN_PROVIDER_ID; + settingsManager.ConfigurationData.RetrievalContextValidation.PreselectOptions = true; + settingsManager.ConfigurationData.RetrievalContextValidation.PreselectedProvider = OWN_PROVIDER_ID; } /// diff --git a/app/Tests/AIOperations/TextContentCleaningProviderTests.cs b/app/Tests/AIOperations/TextContentCleaningProviderTests.cs index 8252fb189..88f7c6592 100644 --- a/app/Tests/AIOperations/TextContentCleaningProviderTests.cs +++ b/app/Tests/AIOperations/TextContentCleaningProviderTests.cs @@ -56,8 +56,8 @@ public sealed class TextContentCleaningProviderTests var settingsManager = CreateSettingsManager(); var assistantProvider = AddProvider(settingsManager, ASSISTANT_PROVIDER_ID, LLMProviders.OPEN_AI); AddProvider(settingsManager, CLEANER_PROVIDER_ID, LLMProviders.MISTRAL); - settingsManager.ConfigurationData.TextContentCleaner.PreselectAgentOptions = true; - settingsManager.ConfigurationData.TextContentCleaner.PreselectedAgentProvider = CLEANER_PROVIDER_ID; + settingsManager.ConfigurationData.TextContentCleaner.PreselectOptions = true; + settingsManager.ConfigurationData.TextContentCleaner.PreselectedProvider = CLEANER_PROVIDER_ID; var choice = Choose(settingsManager, assistantProvider); @@ -78,8 +78,8 @@ public sealed class TextContentCleaningProviderTests var settingsManager = CreateSettingsManager(); var assistantProvider = AddProvider(settingsManager, ASSISTANT_PROVIDER_ID, LLMProviders.OPEN_AI); AddProvider(settingsManager, CLEANER_PROVIDER_ID, LLMProviders.MISTRAL); - settingsManager.ConfigurationData.TextContentCleaner.PreselectAgentOptions = false; - settingsManager.ConfigurationData.TextContentCleaner.PreselectedAgentProvider = CLEANER_PROVIDER_ID; + settingsManager.ConfigurationData.TextContentCleaner.PreselectOptions = false; + settingsManager.ConfigurationData.TextContentCleaner.PreselectedProvider = CLEANER_PROVIDER_ID; var choice = Choose(settingsManager, assistantProvider); @@ -139,7 +139,7 @@ public sealed class TextContentCleaningProviderTests var settingsManager = CreateSettingsManager(); var assistantProvider = AddProvider(settingsManager, ASSISTANT_PROVIDER_ID, LLMProviders.OPEN_AI); AddProvider(settingsManager, CLEANER_PROVIDER_ID, LLMProviders.MISTRAL); - settingsManager.ConfigurationData.TextContentCleaner.PreselectAgentOptions = true; + settingsManager.ConfigurationData.TextContentCleaner.PreselectOptions = true; settingsManager.ConfigurationData.TextContentCleaner.MinimumProviderConfidence = ConfidenceLevel.HIGH; var choice = Choose(settingsManager, assistantProvider); diff --git a/app/Tests/Assistants/AssistantCategoryOfComponentsTests.cs b/app/Tests/Assistants/AssistantCategoryOfComponentsTests.cs index cad14865b..242e70792 100644 --- a/app/Tests/Assistants/AssistantCategoryOfComponentsTests.cs +++ b/app/Tests/Assistants/AssistantCategoryOfComponentsTests.cs @@ -26,10 +26,10 @@ public sealed class AssistantCategoryOfComponentsTests ComponentKind.DYNAMIC_ASSISTANT, ComponentKind.WRITER, ComponentKind.APP_SETTINGS, - ComponentKind.AGENT_TEXT_CONTENT_CLEANER, - ComponentKind.AGENT_DATA_SOURCE_SELECTION, - ComponentKind.AGENT_RETRIEVAL_CONTEXT_VALIDATION, - ComponentKind.AGENT_ASSISTANT_PLUGIN_AUDIT, + ComponentKind.AI_TASK_TEXT_CONTENT_CLEANER, + ComponentKind.AI_TASK_DATA_SOURCE_SELECTION, + ComponentKind.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION, + ComponentKind.AI_TASK_ASSISTANT_PLUGIN_AUDIT, ]; [Test] diff --git a/app/Tests/Chat/ChatThreadRollbackTests.cs b/app/Tests/Chat/ChatThreadRollbackTests.cs index 1f1df622d..a3c3b1d85 100644 --- a/app/Tests/Chat/ChatThreadRollbackTests.cs +++ b/app/Tests/Chat/ChatThreadRollbackTests.cs @@ -212,7 +212,7 @@ public sealed class ChatThreadRollbackTests HideFromUser = hidden, }; - private static DataSourceAgentSelected SelectedHandbook() => new() + private static DataSourceAISelected SelectedHandbook() => new() { DataSource = new DataSourceLocalDirectory { Id = "handbook", Name = "Handbook" }, AIDecision = new SelectedDataSource("handbook", "The question is about the handbook.", 0.9f), diff --git a/app/Tests/Serialization/Fixtures/settings-v6.json b/app/Tests/Serialization/Fixtures/settings-v6.json new file mode 100644 index 000000000..9ced33f11 --- /dev/null +++ b/app/Tests/Serialization/Fixtures/settings-v6.json @@ -0,0 +1,1759 @@ +{ + "Version": "V6", + "Providers": [ + { + "Num": 7, + "Id": "Id sample 1", + "InstanceName": "Name sample 13", + "UsedLLMProvider": "OPEN_AI", + "Model": { + "Id": "Id sample 3", + "DisplayName": "DisplayName sample 4", + "IsSystemModel": false + }, + "IsSelfHosted": true, + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000005", + "Hostname": "Hostname sample 6", + "Host": "LM_STUDIO", + "HFInferenceProvider": "AUTOMATIC", + "AdditionalJsonApiParameters": "AdditionalJsonApiParameters sample 7", + "TokenizerPath": "/samples/TokenizerPath-8.txt", + "CapabilityOverrides": { + "AUDIO_INPUT": true, + "FUNCTION_CALLING": true, + "MULTIPLE_IMAGE_INPUT": true, + "SPEECH_INPUT": true, + "VIDEO_INPUT": true, + "OPTIONAL_REASONING": true, + "ALWAYS_REASONING": true, + "REASONING_BY_DEFAULT": true, + "CONTEXT_WINDOW": 49, + "MAX_IMAGES_PER_MESSAGE": 50, + "MAX_IMAGES_PER_REQUEST": 51 + }, + "AllowUserProvidedAPIKey": true, + "CustomIconDataUrl": "CustomIconDataUrl sample 12", + "PromptForUserAPIKey": true, + "Name": "Name sample 13" + }, + { + "Num": 7, + "Id": "Id sample 14", + "InstanceName": "Name sample 26", + "UsedLLMProvider": "OPEN_AI", + "Model": { + "Id": "Id sample 16", + "DisplayName": "DisplayName sample 17", + "IsSystemModel": false + }, + "IsSelfHosted": true, + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000018", + "Hostname": "Hostname sample 19", + "Host": "LM_STUDIO", + "HFInferenceProvider": "AUTOMATIC", + "AdditionalJsonApiParameters": "AdditionalJsonApiParameters sample 20", + "TokenizerPath": "/samples/TokenizerPath-21.txt", + "CapabilityOverrides": { + "AUDIO_INPUT": true, + "FUNCTION_CALLING": true, + "MULTIPLE_IMAGE_INPUT": true, + "SPEECH_INPUT": true, + "VIDEO_INPUT": true, + "OPTIONAL_REASONING": true, + "ALWAYS_REASONING": true, + "REASONING_BY_DEFAULT": true, + "CONTEXT_WINDOW": 62, + "MAX_IMAGES_PER_MESSAGE": 63, + "MAX_IMAGES_PER_REQUEST": 64 + }, + "AllowUserProvidedAPIKey": true, + "CustomIconDataUrl": "CustomIconDataUrl sample 25", + "PromptForUserAPIKey": true, + "Name": "Name sample 26" + } + ], + "Confidence": { + "EnforceGlobalMinimumConfidence": true, + "GlobalMinimumConfidence": "UNTRUSTED", + "ShowProviderConfidence": true, + "ConfidenceScheme": "TRUST_USA_EUROPE", + "CustomConfidenceScheme": { + "OPEN_AI": "UNTRUSTED", + "ANTHROPIC": "UNKNOWN" + } + }, + "DataSourceSecurity": { + "TrustedProviderIds": [ + "TrustedProviderIds sample 27", + "TrustedProviderIds sample 28" + ], + "MinimumOutboundDataRestriction": "ONLY_LINKS_FROM_CHAT" + }, + "EmbeddingProviders": [ + { + "Num": 7, + "Id": "Id sample 29", + "Name": "Name sample 30", + "UsedLLMProvider": "OPEN_AI", + "Model": { + "Id": "Id sample 31", + "DisplayName": "DisplayName sample 32", + "IsSystemModel": false + }, + "IsSelfHosted": true, + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000033", + "Hostname": "Hostname sample 34", + "Host": "LM_STUDIO", + "TokenizerPath": "/samples/TokenizerPath-35.txt", + "TokenizerFingerprint": "TokenizerFingerprint sample 36", + "EmbeddingBatchSize": 77, + "TokenLimit": 78, + "AllowUserProvidedAPIKey": true, + "CustomIconDataUrl": "CustomIconDataUrl sample 39", + "HFInferenceProvider": "AUTOMATIC", + "PromptForUserAPIKey": true + }, + { + "Num": 7, + "Id": "Id sample 40", + "Name": "Name sample 41", + "UsedLLMProvider": "OPEN_AI", + "Model": { + "Id": "Id sample 42", + "DisplayName": "DisplayName sample 43", + "IsSystemModel": false + }, + "IsSelfHosted": true, + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000044", + "Hostname": "Hostname sample 45", + "Host": "LM_STUDIO", + "TokenizerPath": "/samples/TokenizerPath-46.txt", + "TokenizerFingerprint": "TokenizerFingerprint sample 47", + "EmbeddingBatchSize": 88, + "TokenLimit": 89, + "AllowUserProvidedAPIKey": true, + "CustomIconDataUrl": "CustomIconDataUrl sample 50", + "HFInferenceProvider": "AUTOMATIC", + "PromptForUserAPIKey": true + } + ], + "TranscriptionProviders": [ + { + "Num": 7, + "Id": "Id sample 51", + "Name": "Name sample 52", + "UsedLLMProvider": "OPEN_AI", + "Model": { + "Id": "Id sample 53", + "DisplayName": "DisplayName sample 54", + "IsSystemModel": false + }, + "IsSelfHosted": true, + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000055", + "Hostname": "Hostname sample 56", + "Host": "LM_STUDIO", + "AllowUserProvidedAPIKey": true, + "CustomIconDataUrl": "CustomIconDataUrl sample 57", + "HFInferenceProvider": "AUTOMATIC", + "PromptForUserAPIKey": true + }, + { + "Num": 7, + "Id": "Id sample 58", + "Name": "Name sample 59", + "UsedLLMProvider": "OPEN_AI", + "Model": { + "Id": "Id sample 60", + "DisplayName": "DisplayName sample 61", + "IsSystemModel": false + }, + "IsSelfHosted": true, + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000062", + "Hostname": "Hostname sample 63", + "Host": "LM_STUDIO", + "AllowUserProvidedAPIKey": true, + "CustomIconDataUrl": "CustomIconDataUrl sample 64", + "HFInferenceProvider": "AUTOMATIC", + "PromptForUserAPIKey": true + } + ], + "DataSources": [ + { + "$type_discriminator": "LOCAL_DIRECTORY", + "Num": 7, + "Id": "Id sample 65", + "Name": "Name sample 66", + "Description": "Description sample 67", + "Type": "LOCAL_FILE", + "EmbeddingId": "EmbeddingId sample 68", + "MaxChunkTokenLength": 59, + "ChunkOverlapTokenLength": 60, + "ConfidenceLevel": "UNTRUSTED", + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000071", + "MaxMatches": 8, + "OutboundDataRestriction": "ONLY_LINKS_FROM_CHAT", + "Path": "/samples/Path-72.txt", + "FilePatterns": "FilePatterns sample 73", + "ExcludePatterns": "ExcludePatterns sample 74", + "MaxFileSizeMegabytes": 65, + "IncludeSubdirectories": true, + "IncludeHiddenFilesAndFolders": true + }, + { + "$type_discriminator": "LOCAL_FILE", + "Num": 7, + "Id": "Id sample 76", + "Name": "Name sample 77", + "Description": "Description sample 78", + "Type": "LOCAL_FILE", + "EmbeddingId": "EmbeddingId sample 79", + "MaxChunkTokenLength": 70, + "ChunkOverlapTokenLength": 71, + "ConfidenceLevel": "UNTRUSTED", + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000082", + "MaxMatches": 8, + "OutboundDataRestriction": "ONLY_LINKS_FROM_CHAT", + "FilePath": "/samples/FilePath-83.txt" + }, + { + "$type_discriminator": "ERI_V1", + "Num": 7, + "Id": "Id sample 84", + "Name": "Name sample 85", + "Type": "LOCAL_FILE", + "Hostname": "Hostname sample 86", + "Port": 77, + "AuthMethod": "KERBEROS", + "Username": "Username sample 88", + "UsernamePasswordMode": "SHARED_USERNAME_AND_PASSWORD", + "SecurityPolicy": "ALLOW_ANY", + "OutboundDataRestriction": "ONLY_LINKS_FROM_CHAT", + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000089", + "Version": "V1", + "SelectedRetrievalId": "SelectedRetrievalId sample 90", + "MaxMatches": 8 + } + ], + "Mailboxes": [ + { + "Num": 7, + "Id": "Id sample 91", + "Name": "Name sample 92", + "Type": "LOCAL_FILE", + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000093", + "EmbeddingId": "EmbeddingId sample 94", + "MaxChunkTokenLength": 85, + "ChunkOverlapTokenLength": 86, + "ConfidenceLevel": "UNTRUSTED", + "Host": "Host sample 97", + "Port": 88, + "TransportSecurity": "SSL_ON_CONNECT", + "AuthMethod": "PASSWORD", + "Username": "Username sample 99", + "RootFolder": "RootFolder sample 100", + "IncludeSentAndDrafts": true, + "MaxAge": "LAST_6_MONTHS", + "IndexAttachments": true, + "MaxAttachmentSizeMegabytes": 41, + "OutboundDataRestriction": "ONLY_LINKS_FROM_CHAT", + "MaxMatches": 8 + }, + { + "Num": 7, + "Id": "Id sample 102", + "Name": "Name sample 103", + "Type": "LOCAL_FILE", + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000104", + "EmbeddingId": "EmbeddingId sample 105", + "MaxChunkTokenLength": 46, + "ChunkOverlapTokenLength": 47, + "ConfidenceLevel": "UNTRUSTED", + "Host": "Host sample 108", + "Port": 49, + "TransportSecurity": "SSL_ON_CONNECT", + "AuthMethod": "PASSWORD", + "Username": "Username sample 110", + "RootFolder": "RootFolder sample 111", + "IncludeSentAndDrafts": true, + "MaxAge": "LAST_6_MONTHS", + "IndexAttachments": true, + "MaxAttachmentSizeMegabytes": 52, + "OutboundDataRestriction": "ONLY_LINKS_FROM_CHAT", + "MaxMatches": 8 + } + ], + "MailboxSettings": { + "MinimumOutboundDataRestriction": "ONLY_LINKS_FROM_CHAT", + "AllowOnlyOrganizationMailServers": true + }, + "Profiles": [ + { + "Num": 7, + "Id": "Id sample 113", + "Name": "Name sample 114", + "NeedToKnow": "NeedToKnow sample 115", + "Actions": "Actions sample 116", + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000117" + }, + { + "Num": 7, + "Id": "Id sample 118", + "Name": "Name sample 119", + "NeedToKnow": "NeedToKnow sample 120", + "Actions": "Actions sample 121", + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000122" + } + ], + "ChatTemplates": [ + { + "Num": 7, + "Id": "Id sample 123", + "Name": "Name sample 124", + "SystemPrompt": "SystemPrompt sample 125", + "PredefinedUserPrompt": "PredefinedUserPrompt sample 126", + "ExampleConversation": [ + { + "Time": "2026-10-29T14:37:15+01:00", + "ContentType": "UNKNOWN", + "Content": { + "$type": "text", + "Sources": [ + { + "Title": "Title sample 128", + "URL": "URL sample 129", + "Origin": "RAG" + }, + { + "Title": "Title sample 130", + "URL": "URL sample 131", + "Origin": "RAG" + } + ], + "FileAttachments": [ + { + "$type": "file", + "Type": "IMAGE", + "FileName": "FileName sample 132", + "FilePath": "/samples/FilePath-133.txt", + "FileSizeBytes": 4000000134, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-133.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000135", + "Version": { + "LastWriteUtc": "2026-10-29T13:16:00Z", + "Length": 4000000137 + } + }, + { + "$type": "image", + "SourceType": "LOCAL_PATH", + "Type": "IMAGE", + "FileName": "FileName sample 138", + "FilePath": "/samples/FilePath-139.txt", + "FileSizeBytes": 4000000140, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-139.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000141", + "Version": { + "LastWriteUtc": "2026-10-29T13:22:00Z", + "Length": 4000000143 + } + }, + { + "$type": "managed_transcript", + "OriginalFileName": "OriginalFileName sample 147", + "IsStaged": true, + "Type": "IMAGE", + "FileName": "FileName sample 144", + "FilePath": "/samples/FilePath-145.txt", + "FileSizeBytes": 4000000146, + "IsForbidden": false, + "IsValid": true, + "IsImage": false, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-145.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000148", + "Version": { + "LastWriteUtc": "2026-10-29T13:29:00Z", + "Length": 4000000150 + } + } + ], + "ToolInvocations": [ + { + "Order": 41, + "ToolId": "ToolId sample 152", + "ToolName": "ToolName sample 153", + "ToolIcon": "ToolIcon sample 154", + "ToolCallId": "ToolCallId sample 155", + "Status": "SUCCESS", + "WasExecuted": true, + "StatusMessage": "StatusMessage sample 156", + "Arguments": { + "ArgumentsKey sample 157": "Arguments sample 158", + "ArgumentsKey sample 159": "Arguments sample 160" + } + }, + { + "Order": 51, + "ToolId": "ToolId sample 162", + "ToolName": "ToolName sample 163", + "ToolIcon": "ToolIcon sample 164", + "ToolCallId": "ToolCallId sample 165", + "Status": "SUCCESS", + "WasExecuted": true, + "StatusMessage": "StatusMessage sample 166", + "Arguments": { + "ArgumentsKey sample 167": "Arguments sample 168", + "ArgumentsKey sample 169": "Arguments sample 170" + } + } + ], + "Presentation": { + "Kind": "SWOT_ANALYSIS", + "Data": { + "sample": 171, + "text": "Gr\u00F6\u00DFe" + } + }, + "SourcePassages": [ + { + "SourceUrl": "SourceUrl sample 172", + "DataSourceName": "DataSourceName sample 173", + "Path": "/samples/Path-174.txt", + "Category": "UNKNOWN", + "Type": "UNKNOWN", + "ProvenanceId": "00000000-0000-4000-8000-000000000175", + "Text": "Text sample 176", + "SurroundingContent": [ + "SurroundingContent sample 177", + "SurroundingContent sample 178" + ], + "PageNumber": 69, + "EndPageNumber": 70, + "SheetName": "SheetName sample 181", + "StartRow": 72, + "EndRow": 73, + "StartLine": 74, + "EndLine": 75, + "ChunkNumber": 76 + }, + { + "SourceUrl": "SourceUrl sample 187", + "DataSourceName": "DataSourceName sample 188", + "Path": "/samples/Path-189.txt", + "Category": "UNKNOWN", + "Type": "UNKNOWN", + "ProvenanceId": "00000000-0000-4000-8000-000000000190", + "Text": "Text sample 191", + "SurroundingContent": [ + "SurroundingContent sample 192", + "SurroundingContent sample 193" + ], + "PageNumber": 84, + "EndPageNumber": 85, + "SheetName": "SheetName sample 196", + "StartRow": 87, + "EndRow": 88, + "StartLine": 89, + "EndLine": 40, + "ChunkNumber": 41 + } + ], + "ReportedUsage": { + "PromptTokens": 42, + "ModelId": "ModelId sample 203", + "BlockCount": 44 + }, + "Text": "Text sample 205" + }, + "Role": "UNKNOWN", + "HideFromUser": true + }, + { + "Time": "2026-10-29T15:56:15+01:00", + "ContentType": "UNKNOWN", + "Content": { + "$type": "image", + "Sources": [ + { + "Title": "Title sample 207", + "URL": "URL sample 208", + "Origin": "RAG" + }, + { + "Title": "Title sample 209", + "URL": "URL sample 210", + "Origin": "RAG" + } + ], + "FileAttachments": [ + { + "$type": "file", + "Type": "IMAGE", + "FileName": "FileName sample 211", + "FilePath": "/samples/FilePath-212.txt", + "FileSizeBytes": 4000000213, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-212.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000214", + "Version": { + "LastWriteUtc": "2026-10-29T14:35:00Z", + "Length": 4000000216 + } + }, + { + "$type": "image", + "SourceType": "LOCAL_PATH", + "Type": "IMAGE", + "FileName": "FileName sample 217", + "FilePath": "/samples/FilePath-218.txt", + "FileSizeBytes": 4000000219, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-218.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000220", + "Version": { + "LastWriteUtc": "2026-10-29T14:41:00Z", + "Length": 4000000222 + } + }, + { + "$type": "managed_transcript", + "OriginalFileName": "OriginalFileName sample 226", + "IsStaged": true, + "Type": "IMAGE", + "FileName": "FileName sample 223", + "FilePath": "/samples/FilePath-224.txt", + "FileSizeBytes": 4000000225, + "IsForbidden": false, + "IsValid": true, + "IsImage": false, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-224.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000227", + "Version": { + "LastWriteUtc": "2026-10-29T14:48:00Z", + "Length": 4000000229 + } + } + ], + "SourceType": "LOCAL_PATH", + "Source": "Source sample 230" + }, + "Role": "UNKNOWN", + "HideFromUser": true + } + ], + "FileAttachments": [ + { + "$type": "file", + "Type": "IMAGE", + "FileName": "FileName sample 231", + "FilePath": "/samples/FilePath-232.txt", + "FileSizeBytes": 4000000233, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-232.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000234", + "Version": { + "LastWriteUtc": "2026-10-29T14:55:00Z", + "Length": 4000000236 + } + }, + { + "$type": "image", + "SourceType": "LOCAL_PATH", + "Type": "IMAGE", + "FileName": "FileName sample 237", + "FilePath": "/samples/FilePath-238.txt", + "FileSizeBytes": 4000000239, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-238.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000240", + "Version": { + "LastWriteUtc": "2026-10-29T15:01:00Z", + "Length": 4000000242 + } + }, + { + "$type": "managed_transcript", + "OriginalFileName": "OriginalFileName sample 246", + "IsStaged": true, + "Type": "IMAGE", + "FileName": "FileName sample 243", + "FilePath": "/samples/FilePath-244.txt", + "FileSizeBytes": 4000000245, + "IsForbidden": false, + "IsValid": true, + "IsImage": false, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-244.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000247", + "Version": { + "LastWriteUtc": "2026-10-29T15:08:00Z", + "Length": 4000000249 + } + } + ], + "AllowProfileUsage": true, + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000250", + "ToolIds": [ + "ToolIds sample 251", + "ToolIds sample 252" + ], + "DataSourceOptions": { + "DisableDataSources": true, + "AutomaticDataSourceSelection": true, + "AutomaticValidation": true, + "RetrievalMode": "EVERY_MESSAGE", + "PreselectedDataSourceIds": [ + "PreselectedDataSourceIds sample 253", + "PreselectedDataSourceIds sample 254" + ] + }, + "ProfileId": "ProfileId sample 255", + "ProviderId": "ProviderId sample 256", + "WorkspaceName": "WorkspaceName sample 257" + }, + { + "Num": 7, + "Id": "Id sample 258", + "Name": "Name sample 259", + "SystemPrompt": "SystemPrompt sample 260", + "PredefinedUserPrompt": "PredefinedUserPrompt sample 261", + "ExampleConversation": [ + { + "Time": "2026-10-29T16:52:15+01:00", + "ContentType": "UNKNOWN", + "Content": { + "$type": "text", + "Sources": [ + { + "Title": "Title sample 263", + "URL": "URL sample 264", + "Origin": "RAG" + }, + { + "Title": "Title sample 265", + "URL": "URL sample 266", + "Origin": "RAG" + } + ], + "FileAttachments": [ + { + "$type": "file", + "Type": "IMAGE", + "FileName": "FileName sample 267", + "FilePath": "/samples/FilePath-268.txt", + "FileSizeBytes": 4000000269, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-268.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000270", + "Version": { + "LastWriteUtc": "2026-10-29T15:31:00Z", + "Length": 4000000272 + } + }, + { + "$type": "image", + "SourceType": "LOCAL_PATH", + "Type": "IMAGE", + "FileName": "FileName sample 273", + "FilePath": "/samples/FilePath-274.txt", + "FileSizeBytes": 4000000275, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-274.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000276", + "Version": { + "LastWriteUtc": "2026-10-29T15:37:00Z", + "Length": 4000000278 + } + }, + { + "$type": "managed_transcript", + "OriginalFileName": "OriginalFileName sample 282", + "IsStaged": true, + "Type": "IMAGE", + "FileName": "FileName sample 279", + "FilePath": "/samples/FilePath-280.txt", + "FileSizeBytes": 4000000281, + "IsForbidden": false, + "IsValid": true, + "IsImage": false, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-280.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000283", + "Version": { + "LastWriteUtc": "2026-10-29T15:44:00Z", + "Length": 4000000285 + } + } + ], + "ToolInvocations": [ + { + "Order": 76, + "ToolId": "ToolId sample 287", + "ToolName": "ToolName sample 288", + "ToolIcon": "ToolIcon sample 289", + "ToolCallId": "ToolCallId sample 290", + "Status": "SUCCESS", + "WasExecuted": true, + "StatusMessage": "StatusMessage sample 291", + "Arguments": { + "ArgumentsKey sample 292": "Arguments sample 293", + "ArgumentsKey sample 294": "Arguments sample 295" + } + }, + { + "Order": 86, + "ToolId": "ToolId sample 297", + "ToolName": "ToolName sample 298", + "ToolIcon": "ToolIcon sample 299", + "ToolCallId": "ToolCallId sample 300", + "Status": "SUCCESS", + "WasExecuted": true, + "StatusMessage": "StatusMessage sample 301", + "Arguments": { + "ArgumentsKey sample 302": "Arguments sample 303", + "ArgumentsKey sample 304": "Arguments sample 305" + } + } + ], + "Presentation": { + "Kind": "SWOT_ANALYSIS", + "Data": { + "sample": 306, + "text": "Gr\u00F6\u00DFe" + } + }, + "SourcePassages": [ + { + "SourceUrl": "SourceUrl sample 307", + "DataSourceName": "DataSourceName sample 308", + "Path": "/samples/Path-309.txt", + "Category": "UNKNOWN", + "Type": "UNKNOWN", + "ProvenanceId": "00000000-0000-4000-8000-000000000310", + "Text": "Text sample 311", + "SurroundingContent": [ + "SurroundingContent sample 312", + "SurroundingContent sample 313" + ], + "PageNumber": 54, + "EndPageNumber": 55, + "SheetName": "SheetName sample 316", + "StartRow": 57, + "EndRow": 58, + "StartLine": 59, + "EndLine": 60, + "ChunkNumber": 61 + }, + { + "SourceUrl": "SourceUrl sample 322", + "DataSourceName": "DataSourceName sample 323", + "Path": "/samples/Path-324.txt", + "Category": "UNKNOWN", + "Type": "UNKNOWN", + "ProvenanceId": "00000000-0000-4000-8000-000000000325", + "Text": "Text sample 326", + "SurroundingContent": [ + "SurroundingContent sample 327", + "SurroundingContent sample 328" + ], + "PageNumber": 69, + "EndPageNumber": 70, + "SheetName": "SheetName sample 331", + "StartRow": 72, + "EndRow": 73, + "StartLine": 74, + "EndLine": 75, + "ChunkNumber": 76 + } + ], + "ReportedUsage": { + "PromptTokens": 77, + "ModelId": "ModelId sample 338", + "BlockCount": 79 + }, + "Text": "Text sample 340" + }, + "Role": "UNKNOWN", + "HideFromUser": true + }, + { + "Time": "2026-10-29T18:11:15+01:00", + "ContentType": "UNKNOWN", + "Content": { + "$type": "image", + "Sources": [ + { + "Title": "Title sample 342", + "URL": "URL sample 343", + "Origin": "RAG" + }, + { + "Title": "Title sample 344", + "URL": "URL sample 345", + "Origin": "RAG" + } + ], + "FileAttachments": [ + { + "$type": "file", + "Type": "IMAGE", + "FileName": "FileName sample 346", + "FilePath": "/samples/FilePath-347.txt", + "FileSizeBytes": 4000000348, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-347.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000349", + "Version": { + "LastWriteUtc": "2026-10-29T16:50:00Z", + "Length": 4000000351 + } + }, + { + "$type": "image", + "SourceType": "LOCAL_PATH", + "Type": "IMAGE", + "FileName": "FileName sample 352", + "FilePath": "/samples/FilePath-353.txt", + "FileSizeBytes": 4000000354, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-353.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000355", + "Version": { + "LastWriteUtc": "2026-10-29T16:56:00Z", + "Length": 4000000357 + } + }, + { + "$type": "managed_transcript", + "OriginalFileName": "OriginalFileName sample 361", + "IsStaged": true, + "Type": "IMAGE", + "FileName": "FileName sample 358", + "FilePath": "/samples/FilePath-359.txt", + "FileSizeBytes": 4000000360, + "IsForbidden": false, + "IsValid": true, + "IsImage": false, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-359.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000362", + "Version": { + "LastWriteUtc": "2026-10-29T17:03:00Z", + "Length": 4000000364 + } + } + ], + "SourceType": "LOCAL_PATH", + "Source": "Source sample 365" + }, + "Role": "UNKNOWN", + "HideFromUser": true + } + ], + "FileAttachments": [ + { + "$type": "file", + "Type": "IMAGE", + "FileName": "FileName sample 366", + "FilePath": "/samples/FilePath-367.txt", + "FileSizeBytes": 4000000368, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-367.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000369", + "Version": { + "LastWriteUtc": "2026-10-29T17:10:00Z", + "Length": 4000000371 + } + }, + { + "$type": "image", + "SourceType": "LOCAL_PATH", + "Type": "IMAGE", + "FileName": "FileName sample 372", + "FilePath": "/samples/FilePath-373.txt", + "FileSizeBytes": 4000000374, + "IsForbidden": false, + "IsValid": true, + "IsImage": true, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-373.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000375", + "Version": { + "LastWriteUtc": "2026-10-29T17:16:00Z", + "Length": 4000000377 + } + }, + { + "$type": "managed_transcript", + "OriginalFileName": "OriginalFileName sample 381", + "IsStaged": true, + "Type": "IMAGE", + "FileName": "FileName sample 378", + "FilePath": "/samples/FilePath-379.txt", + "FileSizeBytes": 4000000380, + "IsForbidden": false, + "IsValid": true, + "IsImage": false, + "FilePathAsUrl": "/local/file?path=%2Fsamples%2FFilePath-379.txt", + "ProvenanceId": "00000000-0000-4000-8000-000000000382", + "Version": { + "LastWriteUtc": "2026-10-29T17:23:00Z", + "Length": 4000000384 + } + } + ], + "AllowProfileUsage": true, + "IsEnterpriseConfiguration": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000385", + "ToolIds": [ + "ToolIds sample 386", + "ToolIds sample 387" + ], + "DataSourceOptions": { + "DisableDataSources": true, + "AutomaticDataSourceSelection": true, + "AutomaticValidation": true, + "RetrievalMode": "EVERY_MESSAGE", + "PreselectedDataSourceIds": [ + "PreselectedDataSourceIds sample 388", + "PreselectedDataSourceIds sample 389" + ] + }, + "ProfileId": "ProfileId sample 390", + "ProviderId": "ProviderId sample 391", + "WorkspaceName": "WorkspaceName sample 392" + } + ], + "EnabledPlugins": [ + "00000000-0000-4000-8000-000000000393", + "00000000-0000-4000-8000-000000000394" + ], + "ManagedEditableDefaults": { + "ManagedEditableDefaultsKey sample 395": { + "ConfigPluginId": "00000000-0000-4000-8000-000000000396", + "LastAppliedValue": "LastAppliedValue sample 397" + }, + "ManagedEditableDefaultsKey sample 398": { + "ConfigPluginId": "00000000-0000-4000-8000-000000000399", + "LastAppliedValue": "LastAppliedValue sample 400" + } + }, + "ManagedLockedConfigurations": { + "ManagedLockedConfigurationsKey sample 401": "00000000-0000-4000-8000-000000000402", + "ManagedLockedConfigurationsKey sample 403": "00000000-0000-4000-8000-000000000404" + }, + "ManagedUserValueSnapshots": { + "ManagedUserValueSnapshotsKey sample 405": "ManagedUserValueSnapshots sample 406", + "ManagedUserValueSnapshotsKey sample 407": "ManagedUserValueSnapshots sample 408" + }, + "AssistantPluginAudits": [ + { + "PluginId": "00000000-0000-4000-8000-000000000409", + "PluginHash": "PluginHash sample 410", + "AuditedAtUtc": "2026-10-29T19:21:15+01:00", + "AuditProviderId": "AuditProviderId sample 412", + "AuditProviderName": "AuditProviderName sample 413", + "Level": "DANGEROUS", + "Summary": "Summary sample 414", + "Confidence": 2.25, + "PromptPreview": "PromptPreview sample 415", + "Findings": [ + { + "severity": "unknown", + "Category": "Category sample 417", + "Location": "Location sample 418", + "Description": "Description sample 419" + }, + { + "severity": "unknown", + "Category": "Category sample 421", + "Location": "Location sample 422", + "Description": "Description sample 423" + } + ] + }, + { + "PluginId": "00000000-0000-4000-8000-000000000424", + "PluginHash": "PluginHash sample 425", + "AuditedAtUtc": "2026-10-29T19:36:15+01:00", + "AuditProviderId": "AuditProviderId sample 427", + "AuditProviderName": "AuditProviderName sample 428", + "Level": "DANGEROUS", + "Summary": "Summary sample 429", + "Confidence": 2.25, + "PromptPreview": "PromptPreview sample 430", + "Findings": [ + { + "severity": "unknown", + "Category": "Category sample 432", + "Location": "Location sample 433", + "Description": "Description sample 434" + }, + { + "severity": "unknown", + "Category": "Category sample 436", + "Location": "Location sample 437", + "Description": "Description sample 438" + } + ] + } + ], + "AppliedEnterpriseAssistantActivations": [ + "AppliedEnterpriseAssistantActivations sample 439", + "AppliedEnterpriseAssistantActivations sample 440" + ], + "StoredDataPathsAreRelative": true, + "NextProviderNum": 7, + "NextEmbeddingNum": 7, + "NextTranscriptionNum": 7, + "NextDataSourceNum": 7, + "NextProfileNum": 7, + "NextChatTemplateNum": 7, + "NextDocumentAnalysisPolicyNum": 7, + "App": { + "LanguageBehavior": "MANUAL", + "LanguagePluginId": "00000000-0000-4000-8000-000000000441", + "PreferredTheme": "LIGHT", + "IsSavingEnergy": true, + "EnableSpellchecking": true, + "CloseExportMessagesAutomatically": true, + "UpdateInterval": "DISABLE_UPDATES", + "UpdateInstallation": "AUTOMATIC", + "NavigationBehavior": "NEVER_EXPAND_USE_TOOLTIPS", + "StartPage": "CHAT", + "InterfaceScreenSizes": [ + { + "ScreenKey": "ScreenKey sample 442", + "Size": "SYSTEM_SCALING", + "CustomPercent": 83 + }, + { + "ScreenKey": "ScreenKey sample 444", + "Size": "SYSTEM_SCALING", + "CustomPercent": 85 + } + ], + "ShowPromptInjectionAlert": true, + "ShowIntroduction": true, + "ShowQuickStartGuide": true, + "ShowLastChangelog": true, + "ShowVision": true, + "PreviewVisibility": "RELEASE_CANDIDATE", + "EnabledPreviewFeatures": [ + "PRE_WRITER_MODE_2024", + "PRE_RAG_2024" + ], + "PreselectedProvider": "PreselectedProvider sample 446", + "PreselectedProfile": "PreselectedProfile sample 447", + "PreselectedChatTemplate": "PreselectedChatTemplate sample 448", + "UseTranscriptionProvider": "UseTranscriptionProvider sample 449", + "OpusBitrate": "KBPS_32", + "ShortcutVoiceRecording": "ShortcutVoiceRecording sample 450", + "ShortcutVoiceRecordingDisplayName": "ShortcutVoiceRecordingDisplayName sample 451", + "ShortcutVoiceRecordingDisplaySource": "ShortcutVoiceRecordingDisplaySource sample 452", + "HttpClientTimeoutSeconds": 43, + "ShareFeatureUsageWithSelfHostedServerOperators": true, + "ExternalHttpCustomRootCertificatesEnabled": true, + "ExternalHttpCustomRootCertificateBundlePath": "/samples/ExternalHttpCustomRootCertificateBundlePath-454.txt", + "ExternalHttpCustomRootCertificateAllowedHosts": [ + "ExternalHttpCustomRootCertificateAllowedHosts sample 455", + "ExternalHttpCustomRootCertificateAllowedHosts sample 456" + ], + "AllowUserToAddProvider": true, + "AllowUserToAddLLMProvider": true, + "AllowUserToAddEmbeddingProvider": true, + "AllowUserToAddTranscriptionProvider": true, + "ProhibitedProviders": [ + "OPEN_AI", + "ANTHROPIC" + ], + "AllowUserToAddMailbox": true, + "AllowUserToImportConfigurationSnippets": true, + "AllowUserToImportProfile": true, + "AllowUserToImportLLMProvider": true, + "AllowUserToImportEmbeddingProvider": true, + "AllowUserToImportTranscriptionProvider": true, + "AllowUserToImportChatTemplate": true, + "AllowUserToImportERIDataSource": true, + "AllowUserToImportDocumentAnalysisPolicy": true, + "AllowUserToImportPlugins": true, + "AllowUserToImportConfigurationPlugins": true, + "AllowUserToSharePlugins": true, + "AllowUserToBackUpData": true, + "AllowUserToRestoreData": true, + "ShowAdminSettings": true, + "EnterpriseEncryptionExportFormat": "V2", + "AddAIGeneratedContentDisclosure": true, + "DataSourceIndexing": { + "AutomaticRefresh": true, + "MinimumPauseBetweenStepsSeconds": 47, + "MaximumPauseBetweenStepsSeconds": 48 + }, + "HiddenAssistants": [ + "UNKNOWN", + "GRAMMAR_SPELLING_ASSISTANT" + ] + }, + "Chat": { + "ShortcutSendBehavior": "MODIFER_ENTER_IS_SENDING", + "LoadingProviderBehavior": "ALWAYS_USE_DEFAULT_CHAT_PROVIDER", + "AddChatProviderBehavior": "ADDED_CHATS_USE_LATEST_PROVIDER", + "SendToChatDataSourceBehavior": "APPLY_STANDARD_CHAT_DATA_SOURCE_OPTIONS", + "PreselectOptions": true, + "PreselectedProvider": "PreselectedProvider sample 459", + "PreselectedProfile": "PreselectedProfile sample 460", + "PreselectedChatTemplate": "PreselectedChatTemplate sample 461", + "PreselectedDataSourcesDisabled": true, + "PreselectedDataSourcesAutomaticSelection": true, + "PreselectedDataSourcesAutomaticValidation": true, + "PreselectedDataSourceIds": [ + "PreselectedDataSourceIds sample 464", + "PreselectedDataSourceIds sample 465" + ], + "PreselectedDataSourcesRetrievalMode": "EVERY_MESSAGE", + "PreselectedDataSourceOptions": { + "DisableDataSources": true, + "AutomaticDataSourceSelection": true, + "AutomaticValidation": true, + "RetrievalMode": "EVERY_MESSAGE", + "PreselectedDataSourceIds": [ + "PreselectedDataSourceIds sample 464", + "PreselectedDataSourceIds sample 465" + ] + }, + "ShowLatestMessageAfterLoading": true, + "ReadChangedAttachmentsAgain": true + }, + "Workspace": { + "StorageBehavior": "STORE_CHATS_AUTOMATICALLY", + "StorageTemporaryMaintenancePolicy": "DELETE_OLDER_THAN_7_DAYS", + "DisplayBehavior": "TOGGLE_SIDEBAR", + "IsSidebarVisible": true, + "SplitterPosition": 1.5 + }, + "IconFinder": { + "PreselectOptions": true, + "PreselectedSource": "ICONS8", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 466" + }, + "Translation": { + "DebounceIntervalMilliseconds": 57, + "PreselectOptions": true, + "PreselectLiveTranslation": true, + "HideWebContentReader": true, + "PreselectWebContentReader": true, + "PreselectContentCleanerAgent": true, + "PreselectedTargetLanguage": "EN_US", + "PreselectOtherLanguage": "PreselectOtherLanguage sample 468", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 469" + }, + "Coding": { + "PreselectOptions": true, + "PreselectCompilerMessages": true, + "PreselectedProgrammingLanguage": "BASH", + "PreselectedOtherProgrammingLanguage": "PreselectedOtherProgrammingLanguage sample 470", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 471", + "PreselectedProfile": "PreselectedProfile sample 472" + }, + "ERI": { + "AutoSaveChanges": true, + "PreselectOptions": true, + "ERIServers": [ + { + "ServerName": "ServerName sample 473", + "ServerDescription": "ServerDescription sample 474", + "ERIVersion": "V1", + "ProgrammingLanguage": "C", + "OtherProgrammingLanguage": "OtherProgrammingLanguage sample 475", + "DataSource": "CUSTOM", + "DataSourceProductName": "DataSourceProductName sample 476", + "OtherDataSource": "OtherDataSource sample 477", + "DataSourceHostname": "DataSourceHostname sample 478", + "DataSourcePort": 69, + "UserTypedPort": true, + "AuthMethods": [ + "KERBEROS", + "USERNAME_PASSWORD" + ], + "AuthDescription": "AuthDescription sample 480", + "OperatingSystem": "WINDOWS", + "AllowedLLMProviders": "ANY", + "EmbeddingInfos": [ + { + "EmbeddingType": "EmbeddingType sample 481", + "EmbeddingName": "EmbeddingName sample 482", + "Description": "Description sample 483", + "UsedWhen": "UsedWhen sample 484", + "Link": "Link sample 485" + }, + { + "EmbeddingType": "EmbeddingType sample 486", + "EmbeddingName": "EmbeddingName sample 487", + "Description": "Description sample 488", + "UsedWhen": "UsedWhen sample 489", + "Link": "Link sample 490" + } + ], + "RetrievalInfos": [ + { + "Name": "Name sample 491", + "Description": "Description sample 492", + "Link": "Link sample 493", + "ParametersDescription": { + "ParametersDescriptionKey sample 494": "ParametersDescription sample 495", + "ParametersDescriptionKey sample 496": "ParametersDescription sample 497" + }, + "Embeddings": [ + { + "EmbeddingType": "EmbeddingType sample 498", + "EmbeddingName": "EmbeddingName sample 499", + "Description": "Description sample 500", + "UsedWhen": "UsedWhen sample 501", + "Link": "Link sample 502" + }, + { + "EmbeddingType": "EmbeddingType sample 503", + "EmbeddingName": "EmbeddingName sample 504", + "Description": "Description sample 505", + "UsedWhen": "UsedWhen sample 506", + "Link": "Link sample 507" + } + ] + }, + { + "Name": "Name sample 508", + "Description": "Description sample 509", + "Link": "Link sample 510", + "ParametersDescription": { + "ParametersDescriptionKey sample 511": "ParametersDescription sample 512", + "ParametersDescriptionKey sample 513": "ParametersDescription sample 514" + }, + "Embeddings": [ + { + "EmbeddingType": "EmbeddingType sample 515", + "EmbeddingName": "EmbeddingName sample 516", + "Description": "Description sample 517", + "UsedWhen": "UsedWhen sample 518", + "Link": "Link sample 519" + }, + { + "EmbeddingType": "EmbeddingType sample 520", + "EmbeddingName": "EmbeddingName sample 521", + "Description": "Description sample 522", + "UsedWhen": "UsedWhen sample 523", + "Link": "Link sample 524" + } + ] + } + ], + "AdditionalLibraries": "AdditionalLibraries sample 525", + "WriteToFilesystem": true, + "BaseDirectory": "BaseDirectory sample 526", + "PreviouslyGeneratedFiles": [ + "PreviouslyGeneratedFiles sample 527", + "PreviouslyGeneratedFiles sample 528" + ] + }, + { + "ServerName": "ServerName sample 529", + "ServerDescription": "ServerDescription sample 530", + "ERIVersion": "V1", + "ProgrammingLanguage": "C", + "OtherProgrammingLanguage": "OtherProgrammingLanguage sample 531", + "DataSource": "CUSTOM", + "DataSourceProductName": "DataSourceProductName sample 532", + "OtherDataSource": "OtherDataSource sample 533", + "DataSourceHostname": "DataSourceHostname sample 534", + "DataSourcePort": 75, + "UserTypedPort": true, + "AuthMethods": [ + "KERBEROS", + "USERNAME_PASSWORD" + ], + "AuthDescription": "AuthDescription sample 536", + "OperatingSystem": "WINDOWS", + "AllowedLLMProviders": "ANY", + "EmbeddingInfos": [ + { + "EmbeddingType": "EmbeddingType sample 537", + "EmbeddingName": "EmbeddingName sample 538", + "Description": "Description sample 539", + "UsedWhen": "UsedWhen sample 540", + "Link": "Link sample 541" + }, + { + "EmbeddingType": "EmbeddingType sample 542", + "EmbeddingName": "EmbeddingName sample 543", + "Description": "Description sample 544", + "UsedWhen": "UsedWhen sample 545", + "Link": "Link sample 546" + } + ], + "RetrievalInfos": [ + { + "Name": "Name sample 547", + "Description": "Description sample 548", + "Link": "Link sample 549", + "ParametersDescription": { + "ParametersDescriptionKey sample 550": "ParametersDescription sample 551", + "ParametersDescriptionKey sample 552": "ParametersDescription sample 553" + }, + "Embeddings": [ + { + "EmbeddingType": "EmbeddingType sample 554", + "EmbeddingName": "EmbeddingName sample 555", + "Description": "Description sample 556", + "UsedWhen": "UsedWhen sample 557", + "Link": "Link sample 558" + }, + { + "EmbeddingType": "EmbeddingType sample 559", + "EmbeddingName": "EmbeddingName sample 560", + "Description": "Description sample 561", + "UsedWhen": "UsedWhen sample 562", + "Link": "Link sample 563" + } + ] + }, + { + "Name": "Name sample 564", + "Description": "Description sample 565", + "Link": "Link sample 566", + "ParametersDescription": { + "ParametersDescriptionKey sample 567": "ParametersDescription sample 568", + "ParametersDescriptionKey sample 569": "ParametersDescription sample 570" + }, + "Embeddings": [ + { + "EmbeddingType": "EmbeddingType sample 571", + "EmbeddingName": "EmbeddingName sample 572", + "Description": "Description sample 573", + "UsedWhen": "UsedWhen sample 574", + "Link": "Link sample 575" + }, + { + "EmbeddingType": "EmbeddingType sample 576", + "EmbeddingName": "EmbeddingName sample 577", + "Description": "Description sample 578", + "UsedWhen": "UsedWhen sample 579", + "Link": "Link sample 580" + } + ] + } + ], + "AdditionalLibraries": "AdditionalLibraries sample 581", + "WriteToFilesystem": true, + "BaseDirectory": "BaseDirectory sample 582", + "PreviouslyGeneratedFiles": [ + "PreviouslyGeneratedFiles sample 583", + "PreviouslyGeneratedFiles sample 584" + ] + } + ], + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 585", + "PreselectedProfile": "PreselectedProfile sample 586" + }, + "DocumentAnalysis": { + "Policies": [ + { + "Id": "Id sample 587", + "Num": 7, + "Name": "PolicyName sample 589", + "IsEnterpriseConfiguration": true, + "PolicyName": "PolicyName sample 589", + "PolicyDescription": "PolicyDescription sample 590", + "IsProtected": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000591", + "AnalysisRules": "AnalysisRules sample 592", + "OutputRules": "OutputRules sample 593", + "MinimumProviderConfidence": "UNTRUSTED", + "AllowedToolIds": [ + "AllowedToolIds sample 594", + "AllowedToolIds sample 595" + ], + "PreselectedProvider": "PreselectedProvider sample 596", + "PreselectedProfile": "PreselectedProfile sample 597", + "HidePolicyDefinition": true + }, + { + "Id": "Id sample 598", + "Num": 7, + "Name": "PolicyName sample 600", + "IsEnterpriseConfiguration": true, + "PolicyName": "PolicyName sample 600", + "PolicyDescription": "PolicyDescription sample 601", + "IsProtected": true, + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000602", + "AnalysisRules": "AnalysisRules sample 603", + "OutputRules": "OutputRules sample 604", + "MinimumProviderConfidence": "UNTRUSTED", + "AllowedToolIds": [ + "AllowedToolIds sample 605", + "AllowedToolIds sample 606" + ], + "PreselectedProvider": "PreselectedProvider sample 607", + "PreselectedProfile": "PreselectedProfile sample 608", + "HidePolicyDefinition": true + } + ] + }, + "BatchProcessing": { + "PreselectOptions": true, + "InputDirectory": "InputDirectory sample 609", + "OutputDirectory": "OutputDirectory sample 610", + "FilePatterns": "FilePatterns sample 611", + "IncludeSubdirectories": true, + "IncludeHiddenFilesAndFolders": true, + "ExcludePatterns": "ExcludePatterns sample 612", + "MaxFileSizeMegabytes": 53, + "PromptSource": "POLICY", + "FreePrompt": "FreePrompt sample 614", + "PromptFilePath": "/samples/PromptFilePath-615.txt", + "PreselectedPolicyId": "PreselectedPolicyId sample 616", + "OutputMode": "TABLE_ONLY", + "ResultFileFormat": "UNKNOWN", + "CsvFileName": "CsvFileName sample 617", + "ResultColumnHeader": "ResultColumnHeader sample 618", + "CsvSeparator": "SEMICOLON", + "CustomCsvSeparator": "CustomCsvSeparator sample 619", + "MinimumDelaySeconds": 60, + "MaximumDelaySeconds": 61, + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 622" + }, + "MandatoryInformation": { + "Acceptances": [ + { + "InfoId": "InfoId sample 623", + "AcceptedVersion": "AcceptedVersion sample 624", + "AcceptedHash": "AcceptedHash sample 625", + "AcceptedAtUtc": "2026-10-29T22:56:15+01:00", + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000627" + }, + { + "InfoId": "InfoId sample 628", + "AcceptedVersion": "AcceptedVersion sample 629", + "AcceptedHash": "AcceptedHash sample 630", + "AcceptedAtUtc": "2026-10-29T23:01:15+01:00", + "EnterpriseConfigurationPluginId": "00000000-0000-4000-8000-000000000632" + } + ] + }, + "TextSummarizer": { + "PreselectOptions": true, + "HideWebContentReader": true, + "PreselectWebContentReader": true, + "PreselectContentCleanerAgent": true, + "PreselectedTargetLanguage": "EN_US", + "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 633", + "PreselectedComplexity": "SIMPLE_LANGUAGE", + "PreselectedExpertInField": "PreselectedExpertInField sample 634", + "PreselectedImportantAspects": "PreselectedImportantAspects sample 635", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 636" + }, + "SWOTAnalysis": { + "PreselectOptions": true, + "HideWebContentReader": true, + "PreselectWebContentReader": true, + "PreselectContentCleanerAgent": true, + "PreselectedTargetLanguage": "EN_US", + "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 637", + "PreselectedImportantAspects": "PreselectedImportantAspects sample 638", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 639" + }, + "TextContentCleaner": { + "PreselectAgentOptions": true, + "PreselectedAgentProvider": "PreselectedAgentProvider sample 640" + }, + "AgentDataSourceSelection": { + "PreselectAgentOptions": true, + "PreselectedAgentProvider": "PreselectedAgentProvider sample 641" + }, + "AgentRetrievalContextValidation": { + "EnableRetrievalContextValidation": true, + "PreselectAgentOptions": true, + "PreselectedAgentProvider": "PreselectedAgentProvider sample 642", + "NumParallelValidations": 83 + }, + "AssistantPluginAudit": { + "RequireAuditBeforeActivation": true, + "PreselectedAgentProvider": "PreselectedAgentProvider sample 644", + "MinimumLevel": "DANGEROUS", + "BlockActivationBelowMinimum": true, + "AutomaticallyAuditAssistants": true, + "EnterpriseApprovedPlugins": [ + { + "PluginHash": "PluginHash sample 645", + "DisplayName": "DisplayName sample 646", + "Comment": "Comment sample 647", + "ApprovedBy": "ApprovedBy sample 648", + "ApprovedAtUtc": "2026-10-29T23:19:15+01:00", + "Activate": true, + "AllowUserOverride": true + }, + { + "PluginHash": "PluginHash sample 650", + "DisplayName": "DisplayName sample 651", + "Comment": "Comment sample 652", + "ApprovedBy": "ApprovedBy sample 653", + "ApprovedAtUtc": "2026-10-29T23:24:15+01:00", + "Activate": true, + "AllowUserOverride": true + } + ] + }, + "Agenda": { + "PreselectOptions": true, + "PreselectName": "PreselectName sample 655", + "PreselectTopic": "PreselectTopic sample 656", + "PreselectObjective": "PreselectObjective sample 657", + "PreselectModerator": "PreselectModerator sample 658", + "PreselectDuration": "PreselectDuration sample 659", + "PreselectStartTime": "PreselectStartTime sample 660", + "PreselectIntroduceParticipants": true, + "PreselectNumberParticipants": "PEER_TO_PEER", + "PreselectActiveParticipation": true, + "PreselectIsMeetingVirtual": true, + "PreselectLocation": "PreselectLocation sample 661", + "PreselectJointDinner": true, + "PreselectSocialActivity": true, + "PreselectArriveAndDepart": true, + "PreselectLunchTime": 52, + "PreselectBreakTime": 53, + "PreselectedTargetLanguage": "EN_US", + "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 664", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 665", + "PreselectedProfile": "PreselectedProfile sample 666" + }, + "GrammarSpelling": { + "PreselectOptions": true, + "PreselectedTargetLanguage": "EN_US", + "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 667", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 668" + }, + "RewriteImprove": { + "PreselectOptions": true, + "PreselectedTargetLanguage": "EN_US", + "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 669", + "PreselectedWritingStyle": "EVERYDAY", + "PreselectedSentenceStructure": "ACTIVE", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 670" + }, + "PromptOptimizer": { + "PreselectOptions": true, + "PreselectedTargetLanguage": "EN_US", + "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 671", + "PreselectedImportantAspects": "PreselectedImportantAspects sample 672", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 673" + }, + "EMail": { + "PreselectOptions": true, + "PreselectedTargetLanguage": "EN_US", + "PreselectOtherLanguage": "PreselectOtherLanguage sample 674", + "PreselectedWritingStyle": "BUSINESS_FORMAL", + "Greeting": "Greeting sample 675", + "SenderName": "SenderName sample 676", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 677", + "PreselectedProfile": "PreselectedProfile sample 678" + }, + "SlideBuilder": { + "TemplatePath": "/samples/TemplatePath-679.txt", + "PreselectedFooterText": "PreselectedFooterText sample 680", + "PreselectedMaxBulletPointsPerSlide": 71, + "PreselectedKeepEmptyPicturePlaceholders": true, + "PreselectedPictureLibraryPath": "/samples/PreselectedPictureLibraryPath-682.txt", + "PreselectedLayouts": { + "TABLE_OF_CONTENTS": "PreselectedLayouts sample 683", + "AGENDA": "PreselectedLayouts sample 684" + }, + "PreselectedTemplateSlideUses": { + "75": "KEEP", + "76": "EDIT" + }, + "PreselectOptions": true, + "PreselectedProfile": "PreselectedProfile sample 687", + "PreselectedProvider": "PreselectedProvider sample 688", + "PreselectedTargetLanguage": "EN_US", + "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 689", + "PreselectedAudienceProfile": "STUDENTS", + "PreselectedAudienceAgeGroup": "CHILDREN", + "PreselectedAudienceOrganizationalLevel": "TRAINEES", + "PreselectedAudienceExpertise": "NON_EXPERTS", + "PreselectedOccasion": "TALK", + "PreselectedOtherOccasion": "PreselectedOtherOccasion sample 690", + "PreselectedImportantAspects": "PreselectedImportantAspects sample 691", + "MinimumProviderConfidence": "UNTRUSTED" + }, + "AssistantBuilder": { + "PreselectOptions": true, + "PreselectedProvider": "PreselectedProvider sample 692", + "PreselectedOutputLanguage": "EN_US", + "PreselectedOtherOutputLanguage": "PreselectedOtherOutputLanguage sample 693", + "MinimumProviderConfidence": "UNTRUSTED" + }, + "VisualBriefing": { + "PreselectedProfile": "PreselectedProfile sample 694", + "PreselectedProvider": "PreselectedProvider sample 695", + "PreselectedTargetLanguage": "EN_US", + "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 696", + "PreselectedAudienceProfile": "STUDENTS", + "PreselectedAudienceAgeGroup": "CHILDREN", + "PreselectedAudienceOrganizationalLevel": "TRAINEES", + "PreselectedAudienceExpertise": "NON_EXPERTS", + "ShowSourceReferences": true, + "OptimizeImages": true, + "MinimumProviderConfidence": "UNTRUSTED" + }, + "LegalCheck": { + "PreselectOptions": true, + "HideWebContentReader": true, + "PreselectWebContentReader": true, + "PreselectContentCleanerAgent": true, + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 697", + "PreselectedProfile": "PreselectedProfile sample 698" + }, + "Synonyms": { + "PreselectOptions": true, + "PreselectedLanguage": "EN_US", + "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 699", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 700" + }, + "MyTasks": { + "PreselectOptions": true, + "PreselectedTargetLanguage": "EN_US", + "PreselectOtherLanguage": "PreselectOtherLanguage sample 701", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 702", + "PreselectedProfile": "PreselectedProfile sample 703" + }, + "JobPostings": { + "PreselectOptions": true, + "PreselectedMandatoryInformation": "PreselectedMandatoryInformation sample 704", + "PreselectedJobDescription": "PreselectedJobDescription sample 705", + "PreselectedQualifications": "PreselectedQualifications sample 706", + "PreselectedResponsibilities": "PreselectedResponsibilities sample 707", + "PreselectedCompanyName": "PreselectedCompanyName sample 708", + "PreselectedWorkLocation": "PreselectedWorkLocation sample 709", + "PreselectedCountryLegalFramework": "PreselectedCountryLegalFramework sample 710", + "PreselectedTargetLanguage": "EN_US", + "PreselectOtherLanguage": "PreselectOtherLanguage sample 711", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProvider": "PreselectedProvider sample 712" + }, + "BiasOfTheDay": { + "UsedBias": [ + 53, + 54 + ], + "DateLastBiasDrawn": "2026-10-29", + "BiasOfTheDayChatId": "00000000-0000-4000-8000-000000000715", + "BiasOfTheDayId": "00000000-0000-4000-8000-000000000716", + "RestrictOneBiasPerDay": true, + "PreselectOptions": true, + "PreselectedTargetLanguage": "EN_US", + "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 717", + "MinimumProviderConfidence": "UNTRUSTED", + "PreselectedProfile": "PreselectedProfile sample 718", + "PreselectedProvider": "PreselectedProvider sample 719" + }, + "I18N": { + "PreselectOptions": true, + "PreselectedLanguagePluginId": "00000000-0000-4000-8000-000000000720", + "PreselectedTargetLanguage": "EN_US", + "PreselectOtherLanguage": "PreselectOtherLanguage sample 721", + "PreselectedProvider": "PreselectedProvider sample 722" + }, + "Tools": { + "Settings": { + "SettingsKey sample 723": { + "SettingsKey sample 724": "Settings sample 725", + "SettingsKey sample 726": "Settings sample 727" + }, + "SettingsKey sample 728": { + "SettingsKey sample 729": "Settings sample 730", + "SettingsKey sample 731": "Settings sample 732" + } + }, + "DefaultToolIdsByComponent": { + "DefaultToolIdsByComponentKey sample 733": [ + "DefaultToolIdsByComponent sample 734", + "DefaultToolIdsByComponent sample 735" + ], + "DefaultToolIdsByComponentKey sample 736": [ + "DefaultToolIdsByComponent sample 737", + "DefaultToolIdsByComponent sample 738" + ] + }, + "VisibleToolSelectionComponents": [ + "VisibleToolSelectionComponents sample 739", + "VisibleToolSelectionComponents sample 740" + ], + "EnableTools": true, + "DisabledToolIds": [ + "DisabledToolIds sample 741", + "DisabledToolIds sample 742" + ], + "UserDisabledToolIds": [ + "UserDisabledToolIds sample 743", + "UserDisabledToolIds sample 744" + ], + "MinimumProviderConfidenceByToolId": { + "MinimumProviderConfidenceByToolIdKey sample 745": "MinimumProviderConfidenceByToolId sample 746", + "MinimumProviderConfidenceByToolIdKey sample 747": "MinimumProviderConfidenceByToolId sample 748" + }, + "LockedToolSettings": { + "LockedToolSettingsKey sample 749": "LockedToolSettings sample 750", + "LockedToolSettingsKey sample 751": "LockedToolSettings sample 752" + }, + "DefaultToolSettings": { + "DefaultToolSettingsKey sample 753": "DefaultToolSettings sample 754", + "DefaultToolSettingsKey sample 755": "DefaultToolSettings sample 756" + } + } +} \ No newline at end of file diff --git a/app/Tests/Serialization/Fixtures/settings.json b/app/Tests/Serialization/Fixtures/settings.json index 9ced33f11..284b6b118 100644 --- a/app/Tests/Serialization/Fixtures/settings.json +++ b/app/Tests/Serialization/Fixtures/settings.json @@ -1,5 +1,5 @@ { - "Version": "V6", + "Version": "V7", "Providers": [ { "Num": 7, @@ -1176,7 +1176,7 @@ "PreselectLiveTranslation": true, "HideWebContentReader": true, "PreselectWebContentReader": true, - "PreselectContentCleanerAgent": true, + "PreselectContentCleaner": true, "PreselectedTargetLanguage": "EN_US", "PreselectOtherLanguage": "PreselectOtherLanguage sample 468", "MinimumProviderConfidence": "UNTRUSTED", @@ -1480,7 +1480,7 @@ "PreselectOptions": true, "HideWebContentReader": true, "PreselectWebContentReader": true, - "PreselectContentCleanerAgent": true, + "PreselectContentCleaner": true, "PreselectedTargetLanguage": "EN_US", "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 633", "PreselectedComplexity": "SIMPLE_LANGUAGE", @@ -1493,7 +1493,7 @@ "PreselectOptions": true, "HideWebContentReader": true, "PreselectWebContentReader": true, - "PreselectContentCleanerAgent": true, + "PreselectContentCleaner": true, "PreselectedTargetLanguage": "EN_US", "PreselectedOtherLanguage": "PreselectedOtherLanguage sample 637", "PreselectedImportantAspects": "PreselectedImportantAspects sample 638", @@ -1501,22 +1501,22 @@ "PreselectedProvider": "PreselectedProvider sample 639" }, "TextContentCleaner": { - "PreselectAgentOptions": true, - "PreselectedAgentProvider": "PreselectedAgentProvider sample 640" + "PreselectOptions": true, + "PreselectedProvider": "PreselectedAgentProvider sample 640" }, - "AgentDataSourceSelection": { - "PreselectAgentOptions": true, - "PreselectedAgentProvider": "PreselectedAgentProvider sample 641" + "DataSourceSelection": { + "PreselectOptions": true, + "PreselectedProvider": "PreselectedAgentProvider sample 641" }, - "AgentRetrievalContextValidation": { + "RetrievalContextValidation": { "EnableRetrievalContextValidation": true, - "PreselectAgentOptions": true, - "PreselectedAgentProvider": "PreselectedAgentProvider sample 642", + "PreselectOptions": true, + "PreselectedProvider": "PreselectedAgentProvider sample 642", "NumParallelValidations": 83 }, "AssistantPluginAudit": { "RequireAuditBeforeActivation": true, - "PreselectedAgentProvider": "PreselectedAgentProvider sample 644", + "PreselectedProvider": "PreselectedAgentProvider sample 644", "MinimumLevel": "DANGEROUS", "BlockActivationBelowMinimum": true, "AutomaticallyAuditAssistants": true, @@ -1652,7 +1652,7 @@ "PreselectOptions": true, "HideWebContentReader": true, "PreselectWebContentReader": true, - "PreselectContentCleanerAgent": true, + "PreselectContentCleaner": true, "MinimumProviderConfidence": "UNTRUSTED", "PreselectedProvider": "PreselectedProvider sample 697", "PreselectedProfile": "PreselectedProfile sample 698" diff --git a/app/Tests/Serialization/JsonGoldenFileTests.cs b/app/Tests/Serialization/JsonGoldenFileTests.cs index 77cfc8dae..aeb8bed17 100644 --- a/app/Tests/Serialization/JsonGoldenFileTests.cs +++ b/app/Tests/Serialization/JsonGoldenFileTests.cs @@ -37,6 +37,7 @@ public sealed class JsonGoldenFileTests yield return new("settings-v1.json", typeof(DataV1V3), SettingsManager.JSON_OPTIONS); yield return new("settings-v4.json", typeof(DataV4), SettingsManager.JSON_OPTIONS); yield return new("settings-v5.json", typeof(DataV5), SettingsManager.JSON_OPTIONS); + yield return new("settings-v6.json", typeof(DataV6), SettingsManager.JSON_OPTIONS); yield return new("chat.json", typeof(ChatThread), WorkspaceBehaviour.JSON_OPTIONS); yield return new("swot-analysis.json", typeof(SwotAnalysisResult), SwotAnalysisContentPresentation.JSON_OPTIONS); yield return new("data-backup-manifest.json", typeof(DataBackupManifest), DataBackupFormat.JSON_OPTIONS); @@ -78,6 +79,7 @@ public sealed class JsonGoldenFileTests [TestCase("settings-v1.json", Version.V1)] [TestCase("settings-v4.json", Version.V4)] [TestCase("settings-v5.json", Version.V5)] + [TestCase("settings-v6.json", Version.V6)] public void OldSettingsMigrateAsWithReflection(string fileName, Version version) { var json = ReadFixture(fileName); @@ -89,6 +91,21 @@ public sealed class JsonGoldenFileTests Assert.That(JsonSerializer.Serialize(migrated, SettingsManager.JSON_OPTIONS), Is.EqualTo(JsonSerializer.Serialize(migratedByReflection, baseline))); } + /// + /// The fixture of the current settings is the one of version V6 with the names of version V7, so the + /// migration has to turn the one into the other without losing a value. + /// + [Test] + public void TheSettingsOfVersionV6MigrateIntoTheCurrentFixture() + { + var migrated = SettingsMigrations.Migrate(NullLogger.Instance, Version.V6, ReadFixture("settings-v6.json"), SettingsManager.JSON_OPTIONS); + + var expected = JsonNode.Parse(ReadFixture("settings.json")); + var actual = JsonSerializer.SerializeToNode(migrated, SettingsManager.JSON_OPTIONS); + + Assert.That(JsonContainment.FindMissing(expected, actual), Is.Empty, "The migration lost or misplaced these values of the settings."); + } + /// /// Reads a file from the fixtures next to this test. /// diff --git a/app/Tests/Serialization/JsonTestRoots.cs b/app/Tests/Serialization/JsonTestRoots.cs index c480926e8..a31d0d07f 100644 --- a/app/Tests/Serialization/JsonTestRoots.cs +++ b/app/Tests/Serialization/JsonTestRoots.cs @@ -40,6 +40,7 @@ public static partial class JsonTestRoots yield return Case(new(typeof(DataV1V3), SettingsManager.JSON_OPTIONS)); yield return Case(new(typeof(DataV4), SettingsManager.JSON_OPTIONS)); yield return Case(new(typeof(DataV5), SettingsManager.JSON_OPTIONS)); + yield return Case(new(typeof(DataV6), SettingsManager.JSON_OPTIONS)); // // The values of managed settings, which get written and read on their own, as the type of their diff --git a/app/Tests/Settings/BackgroundTaskMinimumConfidenceTests.cs b/app/Tests/Settings/AITaskMinimumConfidenceTests.cs similarity index 73% rename from app/Tests/Settings/BackgroundTaskMinimumConfidenceTests.cs rename to app/Tests/Settings/AITaskMinimumConfidenceTests.cs index 1e737fcec..19847b53a 100644 --- a/app/Tests/Settings/BackgroundTaskMinimumConfidenceTests.cs +++ b/app/Tests/Settings/AITaskMinimumConfidenceTests.cs @@ -6,7 +6,7 @@ using Microsoft.Extensions.Logging.Abstractions; namespace AIStudio.Tests.Settings; /// -/// Checks when the minimum confidence of a background task applies. +/// Checks when the minimum confidence of an AI task applies. /// /// /// The text content cleaner, the data source selection, and the retrieval context validation apply their @@ -15,7 +15,7 @@ namespace AIStudio.Tests.Settings; /// one would find a namespace of this assembly first, see AIOperationProviderResolverTests. /// [TestFixture] -public sealed class BackgroundTaskMinimumConfidenceTests +public sealed class AITaskMinimumConfidenceTests { [Test] public void TheTextContentCleanerAppliesItsMinimumOnlyWithItsPreselection() @@ -23,25 +23,25 @@ public sealed class BackgroundTaskMinimumConfidenceTests var settingsManager = CreateSettingsManager(); settingsManager.ConfigurationData.TextContentCleaner.MinimumProviderConfidence = ConfidenceLevel.HIGH; - AssertMinimumFollowsPreselection(settingsManager, AIStudio.Tools.Components.AGENT_TEXT_CONTENT_CLEANER, on => settingsManager.ConfigurationData.TextContentCleaner.PreselectAgentOptions = on); + AssertMinimumFollowsPreselection(settingsManager, AIStudio.Tools.Components.AI_TASK_TEXT_CONTENT_CLEANER, on => settingsManager.ConfigurationData.TextContentCleaner.PreselectOptions = on); } [Test] public void TheDataSourceSelectionAppliesItsMinimumOnlyWithItsPreselection() { var settingsManager = CreateSettingsManager(); - settingsManager.ConfigurationData.AgentDataSourceSelection.MinimumProviderConfidence = ConfidenceLevel.HIGH; + settingsManager.ConfigurationData.DataSourceSelection.MinimumProviderConfidence = ConfidenceLevel.HIGH; - AssertMinimumFollowsPreselection(settingsManager, AIStudio.Tools.Components.AGENT_DATA_SOURCE_SELECTION, on => settingsManager.ConfigurationData.AgentDataSourceSelection.PreselectAgentOptions = on); + AssertMinimumFollowsPreselection(settingsManager, AIStudio.Tools.Components.AI_TASK_DATA_SOURCE_SELECTION, on => settingsManager.ConfigurationData.DataSourceSelection.PreselectOptions = on); } [Test] public void TheRetrievalContextValidationAppliesItsMinimumOnlyWithItsPreselection() { var settingsManager = CreateSettingsManager(); - settingsManager.ConfigurationData.AgentRetrievalContextValidation.MinimumProviderConfidence = ConfidenceLevel.HIGH; + settingsManager.ConfigurationData.RetrievalContextValidation.MinimumProviderConfidence = ConfidenceLevel.HIGH; - AssertMinimumFollowsPreselection(settingsManager, AIStudio.Tools.Components.AGENT_RETRIEVAL_CONTEXT_VALIDATION, on => settingsManager.ConfigurationData.AgentRetrievalContextValidation.PreselectAgentOptions = on); + AssertMinimumFollowsPreselection(settingsManager, AIStudio.Tools.Components.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION, on => settingsManager.ConfigurationData.RetrievalContextValidation.PreselectOptions = on); } [Test] @@ -50,7 +50,7 @@ public sealed class BackgroundTaskMinimumConfidenceTests var settingsManager = CreateSettingsManager(); settingsManager.ConfigurationData.AssistantPluginAudit.MinimumProviderConfidence = ConfidenceLevel.HIGH; - Assert.That(AIStudio.Tools.ComponentsExtensions.MinimumConfidence(AIStudio.Tools.Components.AGENT_ASSISTANT_PLUGIN_AUDIT, settingsManager), Is.EqualTo(ConfidenceLevel.HIGH), "The audit has no preselection switch, so nothing may turn its minimum off."); + Assert.That(AIStudio.Tools.ComponentsExtensions.MinimumConfidence(AIStudio.Tools.Components.AI_TASK_ASSISTANT_PLUGIN_AUDIT, settingsManager), Is.EqualTo(ConfidenceLevel.HIGH), "The audit has no preselection switch, so nothing may turn its minimum off."); } private static void AssertMinimumFollowsPreselection(SettingsManager settingsManager, AIStudio.Tools.Components component, Action setPreselection) diff --git a/app/Tests/Settings/EnterpriseEncryptionExportFormatTests.cs b/app/Tests/Settings/EnterpriseEncryptionExportFormatTests.cs index 8b4475964..ded6e3256 100644 --- a/app/Tests/Settings/EnterpriseEncryptionExportFormatTests.cs +++ b/app/Tests/Settings/EnterpriseEncryptionExportFormatTests.cs @@ -105,6 +105,32 @@ public sealed class EnterpriseEncryptionExportFormatTests Assert.That(settingsManager.ConfigurationData.App.EnterpriseEncryptionExportFormat, Is.EqualTo(EnterpriseEncryptionFormat.V1)); } + [Test] + public async Task SettingsOfVersionV6FromBeforeTheChoiceKeepTheLegacyFormat() + { + await File.WriteAllTextAsync(this.SettingsPath, """{"Version": "V6"}"""); + + var settingsManager = CreateSettingsManager(); + await settingsManager.LoadSettings(); + + Assert.That(settingsManager.ConfigurationData.App.EnterpriseEncryptionExportFormat, Is.EqualTo(EnterpriseEncryptionFormat.V1)); + } + + /// + /// Settings of version V6 were written by v26.10.1 and later as well, which store the format. + /// + [TestCase(EnterpriseEncryptionFormat.V1)] + [TestCase(EnterpriseEncryptionFormat.V2)] + public async Task AChosenFormatSurvivesTheMigrationOfVersionV6(EnterpriseEncryptionFormat format) + { + await File.WriteAllTextAsync(this.SettingsPath, $$$"""{"Version": "V6", "App": {"EnterpriseEncryptionExportFormat": "{{{format}}}"}}"""); + + var settingsManager = CreateSettingsManager(); + await settingsManager.LoadSettings(); + + Assert.That(settingsManager.ConfigurationData.App.EnterpriseEncryptionExportFormat, Is.EqualTo(format)); + } + [TestCase(EnterpriseEncryptionFormat.V1)] [TestCase(EnterpriseEncryptionFormat.V2)] public async Task AChosenFormatStays(EnterpriseEncryptionFormat format) diff --git a/app/Tests/Settings/SettingsMigrationV7Tests.cs b/app/Tests/Settings/SettingsMigrationV7Tests.cs new file mode 100644 index 000000000..b1d983889 --- /dev/null +++ b/app/Tests/Settings/SettingsMigrationV7Tests.cs @@ -0,0 +1,230 @@ +using System.Text.Json.Nodes; + +using AIStudio.Provider; +using AIStudio.Settings; +using AIStudio.Settings.DataModel; + +using Microsoft.Extensions.Logging.Abstractions; + +using Version = AIStudio.Settings.Version; + +namespace AIStudio.Tests.Settings; + +/// +/// Checks the migration of the settings to version V7, which took the word "agent" out of the settings +/// of the AI tasks. +/// +/// +/// The keys of the managed settings name a class and a property, so they change as well. Without the +/// migration, the clean-up of the managed settings would drop every lock, organization default, and +/// snapshot of the user's value stored under a former name, because no setting is registered under it. +/// +[TestFixture] +[NonParallelizable] +public sealed class SettingsMigrationV7Tests +{ + private const string SETTINGS_FILENAME = "settings.json"; + + private static readonly Guid CONFIG_PLUGIN_ID = Guid.Parse("8f5f1a3e-2b44-4c55-9e1d-0a6b7c8d9e01"); + + private static readonly string V6_SETTINGS = $$""" + { + "Version": "V6", + "TextContentCleaner": { "PreselectAgentOptions": true, "PreselectedAgentProvider": "cleaner", "MinimumProviderConfidence": "HIGH" }, + "AgentDataSourceSelection": { "PreselectAgentOptions": true, "PreselectedAgentProvider": "selection", "MinimumProviderConfidence": "MEDIUM" }, + "AgentRetrievalContextValidation": { "EnableRetrievalContextValidation": true, "PreselectAgentOptions": true, "PreselectedAgentProvider": "validation", "MinimumProviderConfidence": "LOW", "NumParallelValidations": 7 }, + "AssistantPluginAudit": { "RequireAuditBeforeActivation": false, "PreselectedAgentProvider": "audit", "MinimumProviderConfidence": "MODERATE" }, + "Translation": { "PreselectContentCleanerAgent": true, "PreselectedProvider": "translation" }, + "TextSummarizer": { "PreselectContentCleanerAgent": true, "PreselectedProvider": "summarizer" }, + "SWOTAnalysis": { "PreselectContentCleanerAgent": true, "PreselectedProvider": "swot" }, + "LegalCheck": { "PreselectContentCleanerAgent": true, "PreselectedProvider": "legal" }, + "ManagedLockedConfigurations": { + "DataAssistantPluginAudit.PreselectedAgentProvider": "{{CONFIG_PLUGIN_ID}}", + "DataApp.UpdateInterval": "{{CONFIG_PLUGIN_ID}}" + }, + "ManagedEditableDefaults": { + "DataAgentDataSourceSelection.PreselectedAgentProvider": { "ConfigPluginId": "{{CONFIG_PLUGIN_ID}}", "LastAppliedValue": "selection" } + }, + "ManagedUserValueSnapshots": { + "DataAgentRetrievalContextValidation.NumParallelValidations": "5" + } + } + """; + + private string? previousConfigDirectory; + private string? previousDataDirectory; + private string testDirectory = string.Empty; + + [SetUp] + public void PrepareTestDirectory() + { + // Both directories are static state of the whole application, which is why this fixture + // does not run alongside others: + this.previousConfigDirectory = SettingsManager.ConfigDirectory; + this.previousDataDirectory = SettingsManager.DataDirectory; + + this.testDirectory = Path.Combine(Path.GetTempPath(), $"ai-studio-settings-v7-{Guid.NewGuid():N}"); + Directory.CreateDirectory(this.testDirectory); + + SettingsManager.ConfigDirectory = this.testDirectory; + SettingsManager.DataDirectory = this.testDirectory; + } + + [TearDown] + public void RemoveTestDirectory() + { + SettingsManager.ConfigDirectory = this.previousConfigDirectory; + SettingsManager.DataDirectory = this.previousDataDirectory; + + try + { + Directory.Delete(this.testDirectory, true); + } + catch (IOException) + { + // A temporary directory we could not remove says nothing about the code under test. + } + } + + [Test] + public void TheSettingsOfTheAITasksKeepTheirValues() + { + var settings = Migrate(V6_SETTINGS); + + using (Assert.EnterMultipleScope()) + { + Assert.That(settings.Version, Is.EqualTo(Version.V7)); + + Assert.That(settings.TextContentCleaner.PreselectOptions, Is.True); + Assert.That(settings.TextContentCleaner.PreselectedProvider, Is.EqualTo("cleaner")); + Assert.That(settings.TextContentCleaner.MinimumProviderConfidence, Is.EqualTo(ConfidenceLevel.HIGH)); + + Assert.That(settings.DataSourceSelection.PreselectOptions, Is.True); + Assert.That(settings.DataSourceSelection.PreselectedProvider, Is.EqualTo("selection")); + Assert.That(settings.DataSourceSelection.MinimumProviderConfidence, Is.EqualTo(ConfidenceLevel.MEDIUM)); + + Assert.That(settings.RetrievalContextValidation.EnableRetrievalContextValidation, Is.True); + Assert.That(settings.RetrievalContextValidation.PreselectOptions, Is.True); + Assert.That(settings.RetrievalContextValidation.PreselectedProvider, Is.EqualTo("validation")); + Assert.That(settings.RetrievalContextValidation.MinimumProviderConfidence, Is.EqualTo(ConfidenceLevel.LOW)); + Assert.That(settings.RetrievalContextValidation.NumParallelValidations, Is.EqualTo(7)); + + Assert.That(settings.AssistantPluginAudit.RequireAuditBeforeActivation, Is.False); + Assert.That(settings.AssistantPluginAudit.PreselectedProvider, Is.EqualTo("audit")); + Assert.That(settings.AssistantPluginAudit.MinimumProviderConfidence, Is.EqualTo(ConfidenceLevel.MODERATE)); + } + } + + [Test] + public void TheAssistantsKeepTheirChoiceOfTheContentCleaner() + { + var settings = Migrate(V6_SETTINGS); + + using (Assert.EnterMultipleScope()) + { + Assert.That(settings.Translation.PreselectContentCleaner, Is.True); + Assert.That(settings.Translation.PreselectedProvider, Is.EqualTo("translation")); + Assert.That(settings.TextSummarizer.PreselectContentCleaner, Is.True); + Assert.That(settings.TextSummarizer.PreselectedProvider, Is.EqualTo("summarizer")); + Assert.That(settings.SWOTAnalysis.PreselectContentCleaner, Is.True); + Assert.That(settings.SWOTAnalysis.PreselectedProvider, Is.EqualTo("swot")); + Assert.That(settings.LegalCheck.PreselectContentCleaner, Is.True); + Assert.That(settings.LegalCheck.PreselectedProvider, Is.EqualTo("legal")); + } + } + + /// + /// Settings of version V5 pass every step up to V7, and the classes they share with V6 keep their former names on the way. + /// + [Test] + public void SettingsOfVersionV5ArriveWithTheNewNames() + { + const string V5_SETTINGS = """ + { + "Version": "V5", + "Translation": { "PreselectContentCleanerAgent": true }, + "TextContentCleaner": { "PreselectAgentOptions": true, "PreselectedAgentProvider": "cleaner" }, + "AgentDataSourceSelection": { "PreselectAgentOptions": true, "PreselectedAgentProvider": "selection" }, + "AgentRetrievalContextValidation": { "EnableRetrievalContextValidation": true, "NumParallelValidations": 4 }, + "AssistantPluginAudit": { "PreselectedAgentProvider": "audit" } + } + """; + + var settings = SettingsMigrations.Migrate(NullLogger.Instance, Version.V5, V5_SETTINGS, SettingsManager.JSON_OPTIONS); + + using (Assert.EnterMultipleScope()) + { + Assert.That(settings.Version, Is.EqualTo(Version.V7)); + Assert.That(settings.Translation.PreselectContentCleaner, Is.True); + Assert.That(settings.TextContentCleaner.PreselectOptions, Is.True); + Assert.That(settings.TextContentCleaner.PreselectedProvider, Is.EqualTo("cleaner")); + Assert.That(settings.DataSourceSelection.PreselectOptions, Is.True); + Assert.That(settings.DataSourceSelection.PreselectedProvider, Is.EqualTo("selection")); + Assert.That(settings.RetrievalContextValidation.EnableRetrievalContextValidation, Is.True); + Assert.That(settings.RetrievalContextValidation.NumParallelValidations, Is.EqualTo(4)); + Assert.That(settings.AssistantPluginAudit.PreselectedProvider, Is.EqualTo("audit")); + } + } + + [Test] + public void TheManagedSettingsFollowTheNewNames() + { + var settings = Migrate(V6_SETTINGS); + + using (Assert.EnterMultipleScope()) + { + Assert.That(settings.ManagedLockedConfigurations, Is.EquivalentTo(new Dictionary + { + ["DataAssistantPluginAudit.PreselectedProvider"] = CONFIG_PLUGIN_ID, + ["DataApp.UpdateInterval"] = CONFIG_PLUGIN_ID, + }), "A lock moves to the new name, and a setting which kept its name keeps its lock."); + + Assert.That(settings.ManagedEditableDefaults.Keys, Is.EquivalentTo(new[] { "DataDataSourceSelection.PreselectedProvider" })); + Assert.That(settings.ManagedEditableDefaults["DataDataSourceSelection.PreselectedProvider"].ConfigPluginId, Is.EqualTo(CONFIG_PLUGIN_ID)); + Assert.That(settings.ManagedEditableDefaults["DataDataSourceSelection.PreselectedProvider"].LastAppliedValue, Is.EqualTo("selection")); + + Assert.That(settings.ManagedUserValueSnapshots, Is.EquivalentTo(new Dictionary + { + ["DataRetrievalContextValidation.NumParallelValidations"] = "5", + })); + } + } + + [Test] + public void EveryRenamedManagedSettingIsRegistered() + { + _ = new Data(); + var registeredSettingNames = ManagedConfiguration.RegisteredSettings.Select(setting => setting.SettingName).ToHashSet(StringComparer.Ordinal); + + using (Assert.EnterMultipleScope()) + { + foreach (var (formerName, newName) in SettingsMigrations.MANAGED_SETTING_NAMES_V6_TO_V7) + { + Assert.That(registeredSettingNames, Does.Contain(newName), $"The clean-up of the managed settings would drop '{newName}', the new name of '{formerName}'."); + Assert.That(registeredSettingNames, Does.Not.Contain(formerName), $"The former name '{formerName}' is still registered, so it needs no new name."); + } + } + } + + [Test] + public async Task LoadingSettingsOfVersionV6StoresThemWithTheNewNames() + { + var settingsPath = Path.Combine(this.testDirectory, SETTINGS_FILENAME); + await File.WriteAllTextAsync(settingsPath, V6_SETTINGS); + + var settingsManager = new SettingsManager(NullLogger.Instance, null!); + await settingsManager.LoadSettings(); + + var stored = JsonNode.Parse(await File.ReadAllTextAsync(settingsPath))!.AsObject(); + using (Assert.EnterMultipleScope()) + { + Assert.That(settingsManager.ConfigurationData.AssistantPluginAudit.PreselectedProvider, Is.EqualTo("audit")); + Assert.That(stored["Version"]!.GetValue(), Is.EqualTo(nameof(Version.V7))); + Assert.That(stored.ContainsKey("DataSourceSelection"), Is.True); + Assert.That(stored.ContainsKey("AgentDataSourceSelection"), Is.False); + Assert.That(stored["ManagedLockedConfigurations"]!.AsObject().ContainsKey("DataAssistantPluginAudit.PreselectedProvider"), Is.True); + } + } + + private static Data Migrate(string settingsJson) => SettingsMigrations.Migrate(NullLogger.Instance, Version.V6, settingsJson, SettingsManager.JSON_OPTIONS); +} \ No newline at end of file diff --git a/app/Tests/Settings/SettingsStorageTests.cs b/app/Tests/Settings/SettingsStorageTests.cs index 2c7ef5aae..4adfc3338 100644 --- a/app/Tests/Settings/SettingsStorageTests.cs +++ b/app/Tests/Settings/SettingsStorageTests.cs @@ -34,7 +34,7 @@ public sealed class SettingsStorageTests private const string SETTINGS_FILENAME = "settings.json"; - private const string BACKUP_FILENAME = "settings.v6.json"; + private const string BACKUP_FILENAME = "settings.v7.json"; private string? previousConfigDirectory; private string? previousDataDirectory; @@ -87,8 +87,8 @@ public sealed class SettingsStorageTests { Assert.That(File.Exists(settingsPath), Is.True, "The settings file was never written."); Assert.That(File.Exists(backupPath), Is.True, "The settings backup file was never written."); - Assert.That(ReadSettingsFile(settingsPath)?.Version, Is.EqualTo(Version.V6), "The settings file could not be read back."); - Assert.That(ReadSettingsFile(backupPath)?.Version, Is.EqualTo(Version.V6), "The settings backup file could not be read back."); + Assert.That(ReadSettingsFile(settingsPath)?.Version, Is.EqualTo(Version.V7), "The settings file could not be read back."); + Assert.That(ReadSettingsFile(backupPath)?.Version, Is.EqualTo(Version.V7), "The settings backup file could not be read back."); } } diff --git a/app/Tests/Tools/AppUserAgentTests.cs b/app/Tests/Tools/AppUserAgentTests.cs index 3e1e97e74..d471d654e 100644 --- a/app/Tests/Tools/AppUserAgentTests.cs +++ b/app/Tests/Tools/AppUserAgentTests.cs @@ -13,7 +13,7 @@ namespace AIStudio.Tests.Tools; /// Checks the User-Agent which AI Studio sends to self-hosted servers. /// /// -/// Operators of a gateway such as LiteLLM read it in their logs to see which assistant or agent sent a +/// Operators of a gateway such as LiteLLM read it in their logs to see which assistant or AI task sent a /// request. It has to stay a valid header value whatever a plugin calls its assistant, because an /// invalid one would either break the request or silently vanish from the logs. Who receives it at all /// is a privacy question: nobody without the consent of the user, and a cloud provider never. @@ -60,6 +60,18 @@ public sealed class AppUserAgentTests Assert.That(userAgent, Is.EqualTo($"{AppUserAgent.BASE} Component/TRANSLATION_ASSISTANT")); } + /// + /// Operators filter their logs by these names, which the wiki lists, so renaming one has to be deliberate. + /// + [TestCase(AIStudio.Tools.Components.AI_TASK_TEXT_CONTENT_CLEANER, "AI_TASK_TEXT_CONTENT_CLEANER")] + [TestCase(AIStudio.Tools.Components.AI_TASK_DATA_SOURCE_SELECTION, "AI_TASK_DATA_SOURCE_SELECTION")] + [TestCase(AIStudio.Tools.Components.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION, "AI_TASK_RETRIEVAL_CONTEXT_VALIDATION")] + [TestCase(AIStudio.Tools.Components.AI_TASK_ASSISTANT_PLUGIN_AUDIT, "AI_TASK_ASSISTANT_PLUGIN_AUDIT")] + public void AnAITaskIsNamedAsAnAITask(AIStudio.Tools.Components component, string expectedName) + { + Assert.That(AppUserAgent.ForComponent(component), Is.EqualTo($"{AppUserAgent.BASE} Component/{expectedName}")); + } + [Test] public void NoComponentKeepsTheBase() { diff --git a/app/Tests/Tools/DataSourceParticipatingOperationsTests.cs b/app/Tests/Tools/DataSourceParticipatingOperationsTests.cs index f1720b66c..c20854e49 100644 --- a/app/Tests/Tools/DataSourceParticipatingOperationsTests.cs +++ b/app/Tests/Tools/DataSourceParticipatingOperationsTests.cs @@ -29,7 +29,7 @@ public sealed class DataSourceParticipatingOperationsTests { var operations = DataSourceService.GetParticipatingOperations(Options(automaticSelection: true, automaticValidation: true), DataSourceRetrievalMode.EVERY_MESSAGE, retrievalContextValidationEnabled: true); - Assert.That(operations.Select(operation => operation.Component), Is.EqualTo(new[] { AIStudio.Tools.Components.AGENT_DATA_SOURCE_SELECTION, AIStudio.Tools.Components.AGENT_RETRIEVAL_CONTEXT_VALIDATION })); + Assert.That(operations.Select(operation => operation.Component), Is.EqualTo(new[] { AIStudio.Tools.Components.AI_TASK_DATA_SOURCE_SELECTION, AIStudio.Tools.Components.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION })); } [Test] diff --git a/app/Tests/Tools/PluginSystem/AssistantPropFormerNamesTests.cs b/app/Tests/Tools/PluginSystem/AssistantPropFormerNamesTests.cs new file mode 100644 index 000000000..1b3f48737 --- /dev/null +++ b/app/Tests/Tools/PluginSystem/AssistantPropFormerNamesTests.cs @@ -0,0 +1,142 @@ +using AIStudio.Tools.PluginSystem; +using AIStudio.Tools.PluginSystem.Assistants; +using AIStudio.Tools.PluginSystem.Assistants.DataModel; + +using Lua; + +namespace AIStudio.Tests.Tools.PluginSystem; + +/// +/// Checks that assistant plugins keep the former names of props. +/// +/// +/// Before AI Studio v26.11.2, the web content reader called its preselection of the content cleaner +/// PreselectContentCleanerAgent. Plugins keep that name for good, because a plugin which changes +/// it needs a new security audit. +/// +[TestFixture] +public sealed class AssistantPropFormerNamesTests +{ + private const string FORMER_NAME = "PreselectContentCleanerAgent"; + private const string CURRENT_NAME = "PreselectContentCleaner"; + private const string READER_NAME = "webContent"; + + private static PropSpec WebContentReaderSpec => ComponentPropSpecs.SPECS[AssistantComponentType.WEB_CONTENT_READER]; + + [TestCase(FORMER_NAME)] + [TestCase(CURRENT_NAME)] + public async Task BothNamesPreselectTheContentCleaner(string propName) + { + using var plugin = await LoadAssistantAsync($"""["{propName}"] = true"""); + var reader = FindWebContentReader(plugin); + var state = new AssistantState(); + reader.InitializeState(state); + + using (Assert.EnterMultipleScope()) + { + Assert.That(reader.PreselectContentCleaner, Is.True); + Assert.That(state.WebContent[READER_NAME].PreselectContentCleaner, Is.True); + } + } + + [Test] + public async Task TheCurrentNameWinsOverTheFormerName() + { + using var plugin = await LoadAssistantAsync($"""["{FORMER_NAME}"] = true, ["{CURRENT_NAME}"] = false"""); + + Assert.That(FindWebContentReader(plugin).PreselectContentCleaner, Is.False); + } + + [Test] + public void AnUpdateWithTheFormerNameReachesTheCurrentProp() + { + var update = new LuaTable { [FORMER_NAME] = true }; + + var isApplied = WebContentReaderSpec.TryGetCurrentName(FORMER_NAME, update, out var currentName); + + using (Assert.EnterMultipleScope()) + { + Assert.That(isApplied, Is.True); + Assert.That(currentName, Is.EqualTo(CURRENT_NAME)); + } + } + + [Test] + public void AnUpdateWithBothNamesTakesTheCurrentOne() + { + var update = new LuaTable { [FORMER_NAME] = true, [CURRENT_NAME] = false }; + + using (Assert.EnterMultipleScope()) + { + Assert.That(WebContentReaderSpec.TryGetCurrentName(FORMER_NAME, update, out _), Is.False, "The former name is ignored next to the current one."); + Assert.That(WebContentReaderSpec.TryGetCurrentName(CURRENT_NAME, update, out var currentName), Is.True); + Assert.That(currentName, Is.EqualTo(CURRENT_NAME)); + } + } + + [Test] + public void EveryFormerNameLeadsToAKnownProp() + { + using (Assert.EnterMultipleScope()) + { + foreach (var (type, spec) in ComponentPropSpecs.SPECS) + { + foreach (var (formerName, currentName) in spec.FormerNames) + { + Assert.That(spec.Required.Concat(spec.Optional), Does.Contain(currentName), $"The former name '{formerName}' of {type} leads to '{currentName}', which is no prop of it."); + Assert.That(spec.Required.Concat(spec.Optional), Does.Not.Contain(formerName), $"The former name '{formerName}' is a prop of {type} again."); + } + } + } + } + + /// + /// Loads an assistant plugin whose form holds a web content reader with the given props besides its name. + /// + private static async Task LoadAssistantAsync(string readerProps) + { + var lua = $$""" + ID = "a9d4e2b7-61c3-4f85-b0e8-3c7f19d5a246" + NAME = "Assistant for the tests" + DESCRIPTION = "An assistant plugin with a web content reader." + VERSION = "1.0.0" + TYPE = "ASSISTANT" + AUTHORS = {"MindWork AI"} + SUPPORT_CONTACT = "MindWork AI" + SOURCE_URL = "https://github.com/MindWorkAI/AI-Studio" + CATEGORIES = {"COMMON"} + TARGET_GROUPS = {"EVERYONE"} + IS_MAINTAINED = true + DEPRECATION_MESSAGE = "" + + ASSISTANT = { + ["Title"] = "Web page summary", + ["Description"] = "Summarizes a web page.", + ["SystemPrompt"] = "You summarize the web page the user provides.", + ["SubmitText"] = "Summarize", + ["AllowProfiles"] = false, + ["UI"] = { + ["Type"] = "FORM", + ["Children"] = { + { + ["Type"] = "WEB_CONTENT_READER", + ["Props"] = { ["Name"] = "{{READER_NAME}}", {{readerProps}} } + } + } + } + } + """; + + var plugin = await PluginFactory.Load(null, lua); + if (plugin is not PluginAssistants { IsValid: true } assistantPlugin) + { + var issues = string.Join(" ", plugin.Issues); + plugin.Dispose(); + throw new InvalidOperationException($"The code of this test did not produce a valid assistant plugin: {issues}"); + } + + return assistantPlugin; + } + + private static AssistantWebContentReader FindWebContentReader(PluginAssistants plugin) => plugin.RootComponent!.Children.OfType().Single(); +} \ No newline at end of file diff --git a/app/Tests/Tools/PluginSystem/FormerSettingNamesTests.cs b/app/Tests/Tools/PluginSystem/FormerSettingNamesTests.cs new file mode 100644 index 000000000..9dc5afa7b --- /dev/null +++ b/app/Tests/Tools/PluginSystem/FormerSettingNamesTests.cs @@ -0,0 +1,237 @@ +using System.Text; + +using AIStudio.Settings; +using AIStudio.Tools.PluginSystem; +using AIStudio.Tools.Services; + +using Lua; + +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging.Abstractions; + +using SharedTools.Text; + +namespace AIStudio.Tests.Tools.PluginSystem; + +/// +/// Checks that configuration plugins written for AI Studio v26.11.1 keep the seven settings of the AI +/// tasks which v26.11.2 renamed. +/// +/// +/// Compatibility shim, remove after 2027-05-26, see documentation/compatibility-shims/2026-11-ai-task-setting-names.md. +/// The tests which run a plugin reach the settings through Program.SERVICE_PROVIDER, and the managed +/// state of each setting is static, which is why this fixture does not run alongside others. +/// +[TestFixture] +[NonParallelizable] +public sealed class FormerSettingNamesTests +{ + private const string FORMER_NAME = "DataAssistantPluginAudit.PreselectedAgentProvider"; + private const string CURRENT_NAME = "DataAssistantPluginAudit.PreselectedProvider"; + private const string USER_OVERRIDE_SUFFIX = ".AllowUserOverride"; + private const string FORMER_PROVIDER_ID = "0b6f3c1e-58a2-4d7b-9e44-2f1c8a7d3b90"; + private const string CURRENT_PROVIDER_ID = "6d2e9a47-c3b1-4f08-a5d6-91e7b4c20f3a"; + + private static readonly Guid PLUGIN_ID = Guid.Parse("3c8e51d7-9f2a-4b66-8d03-e7a1b5f49c28"); + + private RustService rustService = null!; + private SettingsManager settingsManager = null!; + private ServiceProvider serviceProvider = null!; + private IServiceProvider previousServiceProvider = null!; + + [SetUp] + public void CreateSettings() + { + // Only builds its HTTP clients. Nothing connects, because the plugins of these tests define no provider: + this.rustService = new RustService("1", "unused"); + + // Creating the settings data registers every managed setting: + this.settingsManager = new SettingsManager(NullLogger.Instance, this.rustService); + + this.previousServiceProvider = Program.SERVICE_PROVIDER; + this.serviceProvider = new ServiceCollection().AddSingleton(this.settingsManager).AddSingleton(this.rustService).BuildServiceProvider(); + Program.SERVICE_PROVIDER = this.serviceProvider; + } + + [TearDown] + public void RestoreApplicationState() + { + // The managed state of a setting outlives this fixture, so we release everything the plugin took over: + ManagedConfiguration.CleanupLeftOverManagedConfigurations([], new HashSet()); + + Program.SERVICE_PROVIDER = this.previousServiceProvider; + this.serviceProvider.Dispose(); + this.rustService.Dispose(); + } + + [Test] + public void EveryCurrentNameIsARegisteredSetting() + { + var registeredSettingNames = ManagedConfiguration.RegisteredSettings.Select(setting => setting.SettingName).ToHashSet(StringComparer.Ordinal); + + using (Assert.EnterMultipleScope()) + { + Assert.That(FormerSettingNames.CURRENT_NAMES, Has.Count.EqualTo(7), "AI Studio v26.11.1 knew seven of the renamed settings."); + foreach (var (formerName, currentName) in FormerSettingNames.CURRENT_NAMES) + { + Assert.That(registeredSettingNames, Does.Contain(currentName), $"The former name '{formerName}' leads to '{currentName}', which is no registered setting."); + Assert.That(registeredSettingNames, Does.Not.Contain(formerName), $"The former name '{formerName}' is a registered setting again."); + } + } + } + + [Test] + public void AFormerNameTakesTheCurrentName() + { + var settingsTable = new LuaTable + { + [FORMER_NAME] = FORMER_PROVIDER_ID, + [$"{FORMER_NAME}{USER_OVERRIDE_SUFFIX}"] = true, + ["DataApp.UpdateInterval"] = "ONCE_STARTUP", + }; + + var resolvedTable = FormerSettingNames.Resolve(settingsTable, "Configuration for the tests", false); + + using (Assert.EnterMultipleScope()) + { + Assert.That(ReadNames(resolvedTable), Is.EquivalentTo(new[] { CURRENT_NAME, $"{CURRENT_NAME}{USER_OVERRIDE_SUFFIX}", "DataApp.UpdateInterval" })); + Assert.That(resolvedTable[CURRENT_NAME].Read(), Is.EqualTo(FORMER_PROVIDER_ID)); + Assert.That(resolvedTable[$"{CURRENT_NAME}{USER_OVERRIDE_SUFFIX}"].Read(), Is.True); + Assert.That(resolvedTable["DataApp.UpdateInterval"].Read(), Is.EqualTo("ONCE_STARTUP")); + } + } + + [Test] + public void TheCurrentNameWinsOverTheFormerName() + { + var settingsTable = new LuaTable + { + [FORMER_NAME] = FORMER_PROVIDER_ID, + [CURRENT_NAME] = CURRENT_PROVIDER_ID, + [$"{FORMER_NAME}{USER_OVERRIDE_SUFFIX}"] = true, + [$"{CURRENT_NAME}{USER_OVERRIDE_SUFFIX}"] = false, + }; + + var resolvedTable = FormerSettingNames.Resolve(settingsTable, "Configuration for the tests", false); + + using (Assert.EnterMultipleScope()) + { + Assert.That(ReadNames(resolvedTable), Is.EquivalentTo(new[] { CURRENT_NAME, $"{CURRENT_NAME}{USER_OVERRIDE_SUFFIX}" })); + Assert.That(resolvedTable[CURRENT_NAME].Read(), Is.EqualTo(CURRENT_PROVIDER_ID)); + Assert.That(resolvedTable[$"{CURRENT_NAME}{USER_OVERRIDE_SUFFIX}"].Read(), Is.False); + } + } + + [Test] + public async Task AFormerNameLocksTheSetting() + { + using var plugin = await RunPluginAsync($"""CONFIG["SETTINGS"]["{FORMER_NAME}"] = "{FORMER_PROVIDER_ID}" """); + var isRegistered = ManagedConfiguration.TryGet(x => x.AssistantPluginAudit, x => x.PreselectedProvider, out var configMeta); + + using (Assert.EnterMultipleScope()) + { + Assert.That(isRegistered, Is.True); + Assert.That(configMeta.IsLocked, Is.True); + Assert.That(configMeta.LockedByConfigPluginId, Is.EqualTo(PLUGIN_ID)); + Assert.That(this.settingsManager.ConfigurationData.AssistantPluginAudit.PreselectedProvider, Is.EqualTo(FORMER_PROVIDER_ID)); + Assert.That(plugin.DeclaredSettingsCount, Is.EqualTo(1)); + } + } + + [Test] + public async Task AFormerNameWithUserOverrideSetsAnOrganizationDefault() + { + using var plugin = await RunPluginAsync( + $"""CONFIG["SETTINGS"]["{FORMER_NAME}"] = "{FORMER_PROVIDER_ID}" """, + $"""CONFIG["SETTINGS"]["{FORMER_NAME}{USER_OVERRIDE_SUFFIX}"] = true"""); + + var isRegistered = ManagedConfiguration.TryGet(x => x.AssistantPluginAudit, x => x.PreselectedProvider, out var configMeta); + + using (Assert.EnterMultipleScope()) + { + Assert.That(isRegistered, Is.True); + Assert.That(configMeta.IsLocked, Is.False); + Assert.That(configMeta.ManagedMode, Is.EqualTo(ManagedConfigurationMode.EDITABLE_DEFAULT)); + Assert.That(configMeta.EditableDefaultByConfigPluginId, Is.EqualTo(PLUGIN_ID)); + Assert.That(this.settingsManager.ConfigurationData.AssistantPluginAudit.PreselectedProvider, Is.EqualTo(FORMER_PROVIDER_ID)); + Assert.That(plugin.DeclaredSettingsCount, Is.EqualTo(1)); + } + } + + /// + /// An organization sets both names while its devices run v26.11.1 and v26.11.2 alike. + /// + [Test] + public async Task APluginWhichSetsBothNamesCountsTheSettingOnce() + { + using var plugin = await RunPluginAsync( + $"""CONFIG["SETTINGS"]["{FORMER_NAME}"] = "{FORMER_PROVIDER_ID}" """, + $"""CONFIG["SETTINGS"]["{CURRENT_NAME}"] = "{CURRENT_PROVIDER_ID}" """); + + var isRegistered = ManagedConfiguration.TryGet(x => x.AssistantPluginAudit, x => x.PreselectedProvider, out var configMeta); + + using (Assert.EnterMultipleScope()) + { + Assert.That(isRegistered, Is.True); + Assert.That(configMeta.LockedByConfigPluginId, Is.EqualTo(PLUGIN_ID)); + Assert.That(this.settingsManager.ConfigurationData.AssistantPluginAudit.PreselectedProvider, Is.EqualTo(CURRENT_PROVIDER_ID)); + Assert.That(plugin.DeclaredSettingsCount, Is.EqualTo(1)); + } + } + + /// + /// Loads a configuration plugin with the given settings and applies it the way AI Studio does when the plugin starts. + /// + /// The Lua lines which set the settings. + /// The started configuration plugin. + private static async Task RunPluginAsync(params string[] settingLines) + { + var code = new StringBuilder($$""" + ID = "{{PLUGIN_ID}}" + NAME = "Configuration for the tests" + DESCRIPTION = "A configuration plugin which uses the former names of settings." + VERSION = "1.0.0" + TYPE = "CONFIGURATION" + AUTHORS = {"MindWork AI"} + SUPPORT_CONTACT = "MindWork AI" + SOURCE_URL = "https://github.com/MindWorkAI/AI-Studio" + CATEGORIES = {"CORE"} + TARGET_GROUPS = {"EVERYONE"} + IS_MAINTAINED = true + DEPRECATION_MESSAGE = "" + CONFIG = {} + CONFIG["SETTINGS"] = {} + + """); + + foreach (var settingLine in settingLines) + code.AppendLineLF(settingLine); + + var plugin = await PluginFactory.Load(null, code.ToString()); + if (plugin is not PluginConfiguration { IsValid: true } configurationPlugin) + { + var issues = string.Join(" ", plugin.Issues); + plugin.Dispose(); + throw new InvalidOperationException($"The code of this test did not produce a valid configuration plugin: {issues}"); + } + + await configurationPlugin.InitializeAsync(false); + return configurationPlugin; + } + + /// + /// Reads the names of all settings in a SETTINGS table. + /// + private static List ReadNames(LuaTable settingsTable) + { + var names = new List(); + var previousKey = LuaValue.Nil; + while (settingsTable.TryGetNext(previousKey, out var pair)) + { + previousKey = pair.Key; + names.Add(pair.Key.Read()); + } + + return names; + } +} \ No newline at end of file diff --git a/documentation/compatibility-shims/2026-10-enterprise-encryption-export-format.md b/documentation/compatibility-shims/2026-10-enterprise-encryption-export-format.md index f1dcad455..7827ce839 100644 --- a/documentation/compatibility-shims/2026-10-enterprise-encryption-export-format.md +++ b/documentation/compatibility-shims/2026-10-enterprise-encryption-export-format.md @@ -18,14 +18,13 @@ The setting `DataApp.EnterpriseEncryptionExportFormat` decides the format, and n ## Compatibility Behavior -Settings written before v26.10.1 lack the property `App.EnterpriseEncryptionExportFormat`. When `SettingsManager` reads such settings, from the settings file or from its backup, it sets the format to v1. Settings of an older schema version always get v1 while they are migrated. Once the settings are stored, they hold the format, and the shim changes nothing anymore. +Settings written before v26.10.1 lack the property `App.EnterpriseEncryptionExportFormat`. When `SettingsManager` reads such settings, from the settings file or from its backup, it sets the format to v1. Settings of an older schema version get v1 while they are migrated, unless they hold the format already, as settings of version V6 may. Once the settings are stored, they hold the format, and the shim changes nothing anymore. Reading `ENC:v1:` values is no part of this shim: AI Studio keeps reading them for good, because organizations deployed configuration plugins with them. ## Removal Checklist -- Remove `KeepTheLegacyEncryptionExportFormat` and its call in `SettingsManager.TryDeserializeCurrentSettings`. -- Remove the line which sets v1 after `SettingsMigrations.Migrate` in `SettingsManager.ReadSettingsSnapshot`. +- Remove `KeepTheLegacyEncryptionExportFormat` and its calls in `SettingsManager.TryDeserializeCurrentSettings` and after `SettingsMigrations.Migrate` in `SettingsManager.ReadSettingsSnapshot`. - Remove the tests of `app/Tests/Settings/EnterpriseEncryptionExportFormatTests.cs` which expect v1 for settings without the property, and keep the others. - Keep the setting `DataApp.EnterpriseEncryptionExportFormat` and the v1 format: both stay. - Update this document's status to `Removed`. diff --git a/documentation/compatibility-shims/2026-11-ai-task-setting-names.md b/documentation/compatibility-shims/2026-11-ai-task-setting-names.md new file mode 100644 index 000000000..d8c4bf7c2 --- /dev/null +++ b/documentation/compatibility-shims/2026-11-ai-task-setting-names.md @@ -0,0 +1,46 @@ +# Former Names of the AI Task Settings + +- Status: Active +- Introduced: 2026-11-26 +- Remove after: 2027-05-26 +- Code references: + - `app/MindWork AI Studio/Tools/PluginSystem/FormerSettingNames.cs` + - `app/MindWork AI Studio/Tools/PluginSystem/PluginConfiguration.cs` (`TryProcessConfiguration`, the call of `FormerSettingNames.Resolve`) + - `app/MindWork AI Studio/Plugins/configuration/plugin.lua` (the paragraph before the settings of the text content cleaner) + - `app/Tests/Tools/PluginSystem/FormerSettingNamesTests.cs` + +## User Impact + +AI Studio v26.11.2 took the word "agent" out of the names of the AI tasks, because the agent mode needs that word for real agents. Seven settings which configuration plugins could already set in v26.11.1 changed their names with it: + +| Name up to v26.11.1 | Name from v26.11.2 | +|---|---| +| `DataAgentDataSourceSelection.PreselectAgentOptions` | `DataDataSourceSelection.PreselectOptions` | +| `DataAgentDataSourceSelection.PreselectedAgentProvider` | `DataDataSourceSelection.PreselectedProvider` | +| `DataAgentRetrievalContextValidation.EnableRetrievalContextValidation` | `DataRetrievalContextValidation.EnableRetrievalContextValidation` | +| `DataAgentRetrievalContextValidation.PreselectAgentOptions` | `DataRetrievalContextValidation.PreselectOptions` | +| `DataAgentRetrievalContextValidation.PreselectedAgentProvider` | `DataRetrievalContextValidation.PreselectedProvider` | +| `DataAgentRetrievalContextValidation.NumParallelValidations` | `DataRetrievalContextValidation.NumParallelValidations` | +| `DataAssistantPluginAudit.PreselectedAgentProvider` | `DataAssistantPluginAudit.PreselectedProvider` | + +Configuration plugins ignore a name they do not know without a word. Without this shim, an organization which updates to v26.11.2 would silently lose these settings, among them the provider which audits assistant plugins. An organization also rolls out a new version over weeks, and devices with v26.11.1 read only the former names, so its configuration plugin has to serve both versions meanwhile. + +The other settings of the AI tasks, such as the minimum provider confidence or the settings of the text content cleaner, came after v26.11.1. No released version knew them under a former name, so they need no shim. + +## Compatibility Behavior + +Right after reading the table `SETTINGS` of a configuration plugin, `PluginConfiguration.TryProcessConfiguration` hands it to `FormerSettingNames.Resolve`. Everything after that, including the validation and the count of declared settings for the import preview, reads the table which `Resolve` returns: + +- A setting the plugin sets under its former name only gets its current name. The same holds for its `.AllowUserOverride` companion. +- A setting the plugin sets under both names keeps the value of the current name; the former name is left out. This lets an organization set both names while its devices run both versions. +- For each setting set under its former name only, AI Studio logs a warning which names the plugin and the new name. A dry run, such as the preview of an import, logs nothing. + +The settings file needs nothing of this: the settings migration to version V7 in `SettingsMigrations.MigrateV6ToV7` moves the locks, organization defaults, and snapshots of the user's values to the new names. + +## Removal Checklist + +- Remove `FormerSettingNames.cs`, its call in `PluginConfiguration.TryProcessConfiguration`, and the comment there. +- Remove the paragraph about the former names from the example `plugin.lua`. +- Remove `FormerSettingNamesTests.cs`. +- Update this document's status to `Removed`. +- Add a changelog entry: configuration plugins which still use the former names lose these settings. \ No newline at end of file