2026-07-05 12:46:31 +00:00
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
2025-02-22 19:51:06 +00:00
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
|
|
2026-07-05 12:46:31 +00:00
|
|
|
public sealed class DataAgentRetrievalContextValidation(Expression<Func<Data, DataAgentRetrievalContextValidation>>? configSelection = null)
|
2025-02-22 19:51:06 +00:00
|
|
|
{
|
2026-07-05 12:46:31 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// The default constructor for the JSON deserializer.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataAgentRetrievalContextValidation() : this(null)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-22 19:51:06 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Enable the retrieval context validation agent?
|
|
|
|
|
/// </summary>
|
2026-07-05 12:46:31 +00:00
|
|
|
public bool EnableRetrievalContextValidation { get; set; } = ManagedConfiguration.Register(configSelection, n => n.EnableRetrievalContextValidation, false);
|
2025-02-22 19:51:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Preselect any retrieval context validation options?
|
|
|
|
|
/// </summary>
|
2026-07-05 12:46:31 +00:00
|
|
|
public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false);
|
2025-02-22 19:51:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Preselect a retrieval context validation provider?
|
|
|
|
|
/// </summary>
|
2026-07-05 12:46:31 +00:00
|
|
|
public string PreselectedAgentProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedAgentProvider, string.Empty);
|
2025-02-22 19:51:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Configure how many parallel validations to run.
|
|
|
|
|
/// </summary>
|
2026-07-05 12:46:31 +00:00
|
|
|
public int NumParallelValidations { get; set; } = ManagedConfiguration.Register(configSelection, n => n.NumParallelValidations, 3);
|
2025-02-22 19:51:06 +00:00
|
|
|
}
|