mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-05 00:44: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
File diff suppressed because it is too large.
Load diff
@@ -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"
|
||||
|
||||
@@ -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)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TheSettingsOfVersionV6MigrateIntoTheCurrentFixture()
|
||||
{
|
||||
var migrated = SettingsMigrations.Migrate(NullLogger<SettingsManager>.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.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads a file from the fixtures next to this test.
|
||||
/// </summary>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user