mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 21:52:11 +00:00
33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
using System.Linq.Expressions;
|
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
public sealed class DataAgentRetrievalContextValidation(Expression<Func<Data, DataAgentRetrievalContextValidation>>? configSelection = null)
|
|
{
|
|
/// <summary>
|
|
/// The default constructor for the JSON deserializer.
|
|
/// </summary>
|
|
public DataAgentRetrievalContextValidation() : this(null)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enable the retrieval context validation agent?
|
|
/// </summary>
|
|
public bool EnableRetrievalContextValidation { get; set; } = ManagedConfiguration.Register(configSelection, n => n.EnableRetrievalContextValidation, false);
|
|
|
|
/// <summary>
|
|
/// Preselect any retrieval context validation options?
|
|
/// </summary>
|
|
public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false);
|
|
|
|
/// <summary>
|
|
/// Preselect a retrieval context validation provider?
|
|
/// </summary>
|
|
public string PreselectedAgentProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedAgentProvider, string.Empty);
|
|
|
|
/// <summary>
|
|
/// Configure how many parallel validations to run.
|
|
/// </summary>
|
|
public int NumParallelValidations { get; set; } = ManagedConfiguration.Register(configSelection, n => n.NumParallelValidations, 3);
|
|
} |