Renamed the settings of AI tasks (#1239)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-27 12:08:00 +01:00
1 parent d19d3d431b
commit a117074972
109 files changed
+3929 -538

No files matched your search

@@ -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.
@@ -13,7 +13,7 @@ namespace AIStudio.AIOperations.DataSourceChoice;
/// Chooses the data sources which fit a prompt, from the descriptions of the data sources.
/// </summary>
/// <remarks>
/// The classic RAG process runs it before it searches, see AgenticSrcSelWithDynHeur.
/// The classic RAG process runs it before it searches, see AISrcSelWithDynHeur.
/// </remarks>
public sealed class DataSourceChoiceOperation(ILogger<DataSourceChoiceOperation> logger, SettingsManager settingsManager, DataSourceDescriptionService descriptionService) : AIOperationBase<DataSourceChoiceRequest, DataSourceChoiceResult>(logger, settingsManager)
{
@@ -79,9 +79,9 @@ public sealed class DataSourceChoiceOperation(ILogger<DataSourceChoiceOperation>
/// <returns>The preferred provider and the minimum confidence, or none of them while the preselection is switched off.</returns>
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<DataSourceChoiceOperation>
public override string Id => "Data Source Selection";
/// <inheritdoc />
public override Tools.Components Component => Tools.Components.AGENT_DATA_SOURCE_SELECTION;
public override Tools.Components Component => Tools.Components.AI_TASK_DATA_SOURCE_SELECTION;
/// <summary>
/// The model reads the descriptions of the data sources, so it has to reach what they require.
@@ -106,7 +106,7 @@ public sealed class PluginAuditOperation(ILogger<PluginAuditOperation> 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<PluginAuditOperation> logger, S
public override string Id => "Assistant Plugin Security Audit";
/// <inheritdoc />
public override Tools.Components Component => Tools.Components.AGENT_ASSISTANT_PLUGIN_AUDIT;
public override Tools.Components Component => Tools.Components.AI_TASK_ASSISTANT_PLUGIN_AUDIT;
/// <summary>
/// A plugin requires nothing of its own: whoever may audit it is decided by the minimum of the audit.
@@ -75,9 +75,9 @@ public sealed class RetrievalContextValidationOperation(ILogger<RetrievalContext
/// <returns>The preferred provider and the minimum confidence, or none of them while the preselection is switched off.</returns>
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<RetrievalContext
public override string Id => "Retrieval Context Validation";
/// <inheritdoc />
public override Tools.Components Component => Tools.Components.AGENT_RETRIEVAL_CONTEXT_VALIDATION;
public override Tools.Components Component => Tools.Components.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION;
/// <summary>
/// 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<RetrievalContext
return request.RetrievalContexts.Select(retrievalContext => 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
@@ -32,8 +32,8 @@ public sealed class TextContentCleaningOperation(ILogger<TextContentCleaningOper
public static AIOperationProviderSettings GetProviderSettings(SettingsManager settingsManager)
{
var settings = settingsManager.ConfigurationData.TextContentCleaner;
return settings.PreselectAgentOptions
? new(settings.PreselectedAgentProvider, settings.MinimumProviderConfidence)
return settings.PreselectOptions
? new(settings.PreselectedProvider, settings.MinimumProviderConfidence)
: AIOperationProviderSettings.NONE;
}
@@ -43,7 +43,7 @@ public sealed class TextContentCleaningOperation(ILogger<TextContentCleaningOper
public override string Id => "Text Content Cleaning";
/// <inheritdoc />
public override Tools.Components Component => Tools.Components.AGENT_TEXT_CONTENT_CLEANER;
public override Tools.Components Component => Tools.Components.AI_TASK_TEXT_CONTENT_CLEANER;
/// <summary>
/// A web page requires nothing of its own: the user chose to read it with the assistant.