diff --git a/app/MindWork AI Studio/Agents/AgentRetrievalContextValidation.cs b/app/MindWork AI Studio/Agents/AgentRetrievalContextValidation.cs index e996e2c7..3f4bf4c2 100644 --- a/app/MindWork AI Studio/Agents/AgentRetrievalContextValidation.cs +++ b/app/MindWork AI Studio/Agents/AgentRetrievalContextValidation.cs @@ -159,7 +159,10 @@ public sealed class AgentRetrievalContextValidation (ILogger>(retrievalContexts.Count); // Read the number of parallel validations: - var numParallelValidations = this.SettingsManager.ConfigurationData.AgentRetrievalContextValidation.NumParallelValidations; + var numParallelValidations = 3; + if(this.SettingsManager.ConfigurationData.AgentRetrievalContextValidation.PreselectAgentOptions) + numParallelValidations = this.SettingsManager.ConfigurationData.AgentRetrievalContextValidation.NumParallelValidations; + numParallelValidations = Math.Max(1, numParallelValidations); // Use a semaphore to limit the number of parallel validations: