mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-05 07:04:35 +00:00
Renamed the settings of AI tasks (#1239)
This commit is contained in:
1 parent
d19d3d431b
commit
a117074972
109 files changed
+3929
-538
No files matched your search
@@ -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.
|
||||
/// </summary>
|
||||
public Version Version { get; set; } = Version.V6;
|
||||
public Version Version { get; set; } = Version.V7;
|
||||
|
||||
/// <summary>
|
||||
/// 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);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ public sealed class DataAssistantPluginAudit(Expression<Func<Data, DataAssistant
|
||||
/// Which provider should be used for the assistant plugin audit?
|
||||
/// When empty, the app-wide default provider is used.
|
||||
/// </summary>
|
||||
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);
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level of the provider which audits the plugins.
|
||||
|
||||
+5
-5
@@ -4,30 +4,30 @@ using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public sealed class DataAgentDataSourceSelection(Expression<Func<Data, DataAgentDataSourceSelection>>? configSelection = null)
|
||||
public sealed class DataDataSourceSelection(Expression<Func<Data, DataDataSourceSelection>>? configSelection = null)
|
||||
{
|
||||
/// <summary>
|
||||
/// The default constructor for the JSON deserializer.
|
||||
/// </summary>
|
||||
public DataAgentDataSourceSelection() : this(null)
|
||||
public DataDataSourceSelection() : this(null)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any data source selection options?
|
||||
/// </summary>
|
||||
public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false);
|
||||
public bool PreselectOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectOptions, false);
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a data source selection provider?
|
||||
/// </summary>
|
||||
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);
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level of the provider which selects the data sources.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ManagedConfiguration.Register(configSelection, n => n.MinimumProviderConfidence, ConfidenceLevel.NONE);
|
||||
}
|
||||
@@ -22,7 +22,7 @@ public class DataLegalCheck
|
||||
/// <summary>
|
||||
/// Preselect the text content cleaner?
|
||||
/// </summary>
|
||||
public bool PreselectContentCleanerAgent { get; set; }
|
||||
public bool PreselectContentCleaner { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level required for a provider to be considered.
|
||||
|
||||
+5
-5
@@ -4,12 +4,12 @@ using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public sealed class DataAgentRetrievalContextValidation(Expression<Func<Data, DataAgentRetrievalContextValidation>>? configSelection = null)
|
||||
public sealed class DataRetrievalContextValidation(Expression<Func<Data, DataRetrievalContextValidation>>? configSelection = null)
|
||||
{
|
||||
/// <summary>
|
||||
/// The default constructor for the JSON deserializer.
|
||||
/// </summary>
|
||||
public DataAgentRetrievalContextValidation() : this(null)
|
||||
public DataRetrievalContextValidation() : this(null)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -21,18 +21,18 @@ public sealed class DataAgentRetrievalContextValidation(Expression<Func<Data, Da
|
||||
/// <summary>
|
||||
/// Preselect any retrieval context validation options?
|
||||
/// </summary>
|
||||
public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false);
|
||||
public bool PreselectOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectOptions, false);
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a retrieval context validation provider?
|
||||
/// </summary>
|
||||
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);
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level of the provider which validates the retrieval contexts.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ManagedConfiguration.Register(configSelection, n => n.MinimumProviderConfidence, ConfidenceLevel.NONE);
|
||||
|
||||
@@ -22,7 +22,7 @@ public sealed class DataSWOTAnalysis
|
||||
/// <summary>
|
||||
/// Preselect the text content cleaner?
|
||||
/// </summary>
|
||||
public bool PreselectContentCleanerAgent { get; set; }
|
||||
public bool PreselectContentCleaner { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the target language?
|
||||
|
||||
@@ -16,18 +16,18 @@ public sealed class DataTextContentCleaner(Expression<Func<Data, DataTextContent
|
||||
/// <summary>
|
||||
/// Preselect any text content cleaner options?
|
||||
/// </summary>
|
||||
public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false);
|
||||
public bool PreselectOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectOptions, false);
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a text content cleaner provider?
|
||||
/// </summary>
|
||||
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);
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level of the provider which cleans the text content.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ManagedConfiguration.Register(configSelection, n => n.MinimumProviderConfidence, ConfidenceLevel.NONE);
|
||||
}
|
||||
@@ -24,7 +24,7 @@ public sealed class DataTextSummarizer
|
||||
/// <summary>
|
||||
/// Preselect the text content cleaner?
|
||||
/// </summary>
|
||||
public bool PreselectContentCleanerAgent { get; set; }
|
||||
public bool PreselectContentCleaner { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the target language?
|
||||
|
||||
@@ -32,7 +32,7 @@ public sealed class DataTranslation
|
||||
/// <summary>
|
||||
/// Preselect the text content cleaner?
|
||||
/// </summary>
|
||||
public bool PreselectContentCleanerAgent { get; set; }
|
||||
public bool PreselectContentCleaner { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the target language?
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel.PreviousModels;
|
||||
|
||||
/// <summary>
|
||||
/// The settings of the data source selection, as settings files up to version V6 store them.
|
||||
/// </summary>
|
||||
public sealed class DataAgentDataSourceSelectionV6
|
||||
{
|
||||
/// <summary>
|
||||
/// Preselect any data source selection options?
|
||||
/// </summary>
|
||||
public bool PreselectAgentOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a data source selection provider?
|
||||
/// </summary>
|
||||
public string PreselectedAgentProvider { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level of the provider which selects the data sources.
|
||||
/// </summary>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE;
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel.PreviousModels;
|
||||
|
||||
/// <summary>
|
||||
/// The settings of the retrieval context validation, as settings files up to version V6 store them.
|
||||
/// </summary>
|
||||
public sealed class DataAgentRetrievalContextValidationV6
|
||||
{
|
||||
/// <summary>
|
||||
/// Enable the retrieval context validation?
|
||||
/// </summary>
|
||||
public bool EnableRetrievalContextValidation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any retrieval context validation options?
|
||||
/// </summary>
|
||||
public bool PreselectAgentOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a retrieval context validation provider?
|
||||
/// </summary>
|
||||
public string PreselectedAgentProvider { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level of the provider which validates the retrieval contexts.
|
||||
/// </summary>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// Configure how many parallel validations to run.
|
||||
/// </summary>
|
||||
public int NumParallelValidations { get; set; } = 3;
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
using AIStudio.AIOperations.PluginAudit;
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel.PreviousModels;
|
||||
|
||||
/// <summary>
|
||||
/// The settings for auditing assistant plugins, as settings files up to version V6 store them.
|
||||
/// </summary>
|
||||
public sealed class DataAssistantPluginAuditV6
|
||||
{
|
||||
/// <summary>
|
||||
/// Should assistant plugins be audited before they can be activated?
|
||||
/// </summary>
|
||||
public bool RequireAuditBeforeActivation { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Which provider should be used for the assistant plugin audit?
|
||||
/// </summary>
|
||||
public string PreselectedAgentProvider { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level of the provider which audits the plugins.
|
||||
/// </summary>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// The minimum audit level assistant plugins should meet.
|
||||
/// </summary>
|
||||
public PluginAuditLevel MinimumLevel { get; set; } = PluginAuditLevel.CAUTION;
|
||||
|
||||
/// <summary>
|
||||
/// Should activation be blocked when the audit result is below the minimum level?
|
||||
/// </summary>
|
||||
public bool BlockActivationBelowMinimum { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// If true, the security audit will be hidden from the user and done in the background.
|
||||
/// </summary>
|
||||
public bool AutomaticallyAuditAssistants { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Enterprise-managed assistant plugin hashes that are approved without requiring a user audit.
|
||||
/// </summary>
|
||||
public IList<DataAssistantPluginEnterpriseApproval> EnterpriseApprovedPlugins { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel.PreviousModels;
|
||||
|
||||
/// <summary>
|
||||
/// The settings of the legal check assistant, as settings files up to version V6 store them.
|
||||
/// </summary>
|
||||
public sealed class DataLegalCheckV6
|
||||
{
|
||||
/// <summary>
|
||||
/// Do you want to preselect any legal check options?
|
||||
/// </summary>
|
||||
public bool PreselectOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Hide the web content reader?
|
||||
/// </summary>
|
||||
public bool HideWebContentReader { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the web content reader?
|
||||
/// </summary>
|
||||
public bool PreselectWebContentReader { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the text content cleaner?
|
||||
/// </summary>
|
||||
public bool PreselectContentCleanerAgent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level required for a provider to be considered.
|
||||
/// </summary>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// The preselected provider.
|
||||
/// </summary>
|
||||
public string PreselectedProvider { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a profile?
|
||||
/// </summary>
|
||||
public string PreselectedProfile { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel.PreviousModels;
|
||||
|
||||
/// <summary>
|
||||
/// The settings of the SWOT analysis assistant, as settings files up to version V6 store them.
|
||||
/// </summary>
|
||||
public sealed class DataSWOTAnalysisV6
|
||||
{
|
||||
/// <summary>
|
||||
/// Preselect any SWOT analysis options?
|
||||
/// </summary>
|
||||
public bool PreselectOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Hide the web content reader?
|
||||
/// </summary>
|
||||
public bool HideWebContentReader { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the web content reader?
|
||||
/// </summary>
|
||||
public bool PreselectWebContentReader { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the text content cleaner?
|
||||
/// </summary>
|
||||
public bool PreselectContentCleanerAgent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the target language?
|
||||
/// </summary>
|
||||
public CommonLanguages PreselectedTargetLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect another target language?
|
||||
/// </summary>
|
||||
public string PreselectedOtherLanguage { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any aspects that the SWOT analysis should focus on?
|
||||
/// </summary>
|
||||
public string PreselectedImportantAspects { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level required for a provider to be considered.
|
||||
/// </summary>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// The preselected provider.
|
||||
/// </summary>
|
||||
public string PreselectedProvider { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel.PreviousModels;
|
||||
|
||||
/// <summary>
|
||||
/// The settings of the text content cleaner, as settings files up to version V6 store them.
|
||||
/// </summary>
|
||||
public sealed class DataTextContentCleanerV6
|
||||
{
|
||||
/// <summary>
|
||||
/// Preselect any text content cleaner options?
|
||||
/// </summary>
|
||||
public bool PreselectAgentOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a text content cleaner provider?
|
||||
/// </summary>
|
||||
public string PreselectedAgentProvider { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level of the provider which cleans the text content.
|
||||
/// </summary>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using AIStudio.Assistants.TextSummarizer;
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel.PreviousModels;
|
||||
|
||||
/// <summary>
|
||||
/// The settings of the text summarizer, as settings files up to version V6 store them.
|
||||
/// </summary>
|
||||
public sealed class DataTextSummarizerV6
|
||||
{
|
||||
/// <summary>
|
||||
/// Preselect any text summarizer options?
|
||||
/// </summary>
|
||||
public bool PreselectOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Hide the web content reader?
|
||||
/// </summary>
|
||||
public bool HideWebContentReader { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the web content reader?
|
||||
/// </summary>
|
||||
public bool PreselectWebContentReader { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the text content cleaner?
|
||||
/// </summary>
|
||||
public bool PreselectContentCleanerAgent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the target language?
|
||||
/// </summary>
|
||||
public CommonLanguages PreselectedTargetLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any other language?
|
||||
/// </summary>
|
||||
public string PreselectedOtherLanguage { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the complexity?
|
||||
/// </summary>
|
||||
public Complexity PreselectedComplexity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any expertise in a field?
|
||||
/// </summary>
|
||||
public string PreselectedExpertInField { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any important aspects that the summarizer should take into account?
|
||||
/// </summary>
|
||||
public string PreselectedImportantAspects { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level required for a provider to be considered.
|
||||
/// </summary>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a text summarizer provider?
|
||||
/// </summary>
|
||||
public string PreselectedProvider { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel.PreviousModels;
|
||||
|
||||
/// <summary>
|
||||
/// The settings of the translation assistant, as settings files up to version V6 store them.
|
||||
/// </summary>
|
||||
public sealed class DataTranslationV6
|
||||
{
|
||||
/// <summary>
|
||||
/// The live translation interval for debouncing in milliseconds.
|
||||
/// </summary>
|
||||
public int DebounceIntervalMilliseconds { get; set; } = 1_500;
|
||||
|
||||
/// <summary>
|
||||
/// Do we want to preselect any translator options?
|
||||
/// </summary>
|
||||
public bool PreselectOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the live translation?
|
||||
/// </summary>
|
||||
public bool PreselectLiveTranslation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Hide the web content reader?
|
||||
/// </summary>
|
||||
public bool HideWebContentReader { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the web content reader?
|
||||
/// </summary>
|
||||
public bool PreselectWebContentReader { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the text content cleaner?
|
||||
/// </summary>
|
||||
public bool PreselectContentCleanerAgent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the target language?
|
||||
/// </summary>
|
||||
public CommonLanguages PreselectedTargetLanguage { get; set; } = CommonLanguages.EN_US;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any other language?
|
||||
/// </summary>
|
||||
public string PreselectOtherLanguage { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level required for a provider to be considered.
|
||||
/// </summary>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// The preselected translator provider.
|
||||
/// </summary>
|
||||
public string PreselectedProvider { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -0,0 +1,204 @@
|
||||
using AIStudio.Tools.PluginSystem.Assistants;
|
||||
|
||||
namespace AIStudio.Settings.DataModel.PreviousModels;
|
||||
|
||||
/// <summary>
|
||||
/// The data model of settings files with version V6.
|
||||
/// </summary>
|
||||
public sealed class DataV6
|
||||
{
|
||||
/// <summary>
|
||||
/// The version of the settings file. Allows us to upgrade the settings
|
||||
/// when a new version is available.
|
||||
/// </summary>
|
||||
public Version Version { get; set; } = Version.V6;
|
||||
|
||||
/// <summary>
|
||||
/// List of configured providers.
|
||||
/// </summary>
|
||||
public List<AIStudio.Settings.Provider> Providers { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Settings concerning confidence levels.
|
||||
/// </summary>
|
||||
public DataConfidence Confidence { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Settings concerning data source security checks.
|
||||
/// </summary>
|
||||
public DataSourceSecuritySettings DataSourceSecurity { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// A collection of embedding providers configured.
|
||||
/// </summary>
|
||||
public List<EmbeddingProvider> EmbeddingProviders { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// A collection of speech providers configured.
|
||||
/// </summary>
|
||||
public List<TranscriptionProvider> TranscriptionProviders { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// A collection of data sources configured.
|
||||
/// </summary>
|
||||
public List<IDataSource> DataSources { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// A collection of mailboxes configured.
|
||||
/// </summary>
|
||||
public List<DataSourceMailbox> Mailboxes { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Settings which apply to all mailboxes.
|
||||
/// </summary>
|
||||
public DataMailboxes MailboxSettings { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// List of configured profiles.
|
||||
/// </summary>
|
||||
public List<Profile> Profiles { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// List of configured chat templates.
|
||||
/// </summary>
|
||||
public List<ChatTemplate> ChatTemplates { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// List of enabled plugins.
|
||||
/// </summary>
|
||||
public List<Guid> EnabledPlugins { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Metadata for managed settings that use a plugin-provided editable default.
|
||||
/// </summary>
|
||||
public Dictionary<string, ManagedEditableDefaultState> ManagedEditableDefaults { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// The configuration plugin that owns each locked managed setting.
|
||||
/// </summary>
|
||||
public Dictionary<string, Guid> ManagedLockedConfigurations { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// The value each managed setting had before a configuration plugin took it over, as JSON.
|
||||
/// </summary>
|
||||
public Dictionary<string, string> ManagedUserValueSnapshots { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Cached audit results for assistant plugins.
|
||||
/// </summary>
|
||||
public List<PluginAssistantAudit> AssistantPluginAudits { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// The assistant plugin hashes whose organization default for the activation was already applied.
|
||||
/// </summary>
|
||||
public List<string> AppliedEnterpriseAssistantActivations { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Whether AI Studio already stored the chats and the settings once more, so that every path below
|
||||
/// the data directory in them is relative.
|
||||
/// </summary>
|
||||
public bool StoredDataPathsAreRelative { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The next provider number to use.
|
||||
/// </summary>
|
||||
public uint NextProviderNum { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The next embedding provider number to use.
|
||||
/// </summary>
|
||||
public uint NextEmbeddingNum { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The next transcription provider number to use.
|
||||
/// </summary>
|
||||
public uint NextTranscriptionNum { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The next data source number to use.
|
||||
/// </summary>
|
||||
public uint NextDataSourceNum { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The next profile number to use.
|
||||
/// </summary>
|
||||
public uint NextProfileNum { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The next chat template number to use.
|
||||
/// </summary>
|
||||
public uint NextChatTemplateNum { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The next document analysis policy number to use.
|
||||
/// </summary>
|
||||
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();
|
||||
}
|
||||
@@ -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.
|
||||
/// </remarks>
|
||||
public bool AllowsMailboxConfidenceLevel(ConfidenceLevel mailboxConfidenceLevel)
|
||||
{
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace AIStudio.Settings;
|
||||
[JsonSerializable(typeof(DataV1V3))]
|
||||
[JsonSerializable(typeof(DataV4))]
|
||||
[JsonSerializable(typeof(DataV5))]
|
||||
[JsonSerializable(typeof(DataV6))]
|
||||
[JsonSerializable(typeof(ISet<string>))]
|
||||
[JsonSerializable(typeof(ISet<PreviewFeatures>))]
|
||||
[JsonSerializable(typeof(ISet<LLMProviders>))]
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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<DataV1V3>(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<DataV1V3>(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<DataV4>(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<DataV5>(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<Data>(configData, jsonOptions);
|
||||
case Version.V6:
|
||||
var configV6 = JsonSerializer.Deserialize<DataV6>(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<Data>(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<SettingsManager> logger, DataV5 previousConfig)
|
||||
private static DataV6 MigrateV5ToV6(ILogger<SettingsManager> 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,
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The names of the managed settings which changed with version V7, by their former names.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
internal static readonly IReadOnlyDictionary<string, string> MANAGED_SETTING_NAMES_V6_TO_V7 = new Dictionary<string, string>
|
||||
{
|
||||
["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<SettingsManager> 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<string, TValue> RenameManagedSettingsV6ToV7<TValue>(Dictionary<string, TValue> managedStates)
|
||||
{
|
||||
var renamedStates = new Dictionary<string, TValue>(managedStates.Count);
|
||||
foreach (var (settingName, state) in managedStates)
|
||||
renamedStates[MANAGED_SETTING_NAMES_V6_TO_V7.GetValueOrDefault(settingName, settingName)] = state;
|
||||
|
||||
return renamedStates;
|
||||
}
|
||||
}
|
||||
@@ -14,4 +14,5 @@ public enum Version
|
||||
V4,
|
||||
V5,
|
||||
V6,
|
||||
V7,
|
||||
}
|
||||
Reference in new issue
Block a user