2026-07-05 12:46:31 +00:00
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
2025-02-17 11:33:34 +00:00
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
|
|
2026-07-05 12:46:31 +00:00
|
|
|
public sealed class DataAgentDataSourceSelection(Expression<Func<Data, DataAgentDataSourceSelection>>? configSelection = null)
|
2025-02-17 11:33:34 +00:00
|
|
|
{
|
2026-07-05 12:46:31 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// The default constructor for the JSON deserializer.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataAgentDataSourceSelection() : this(null)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-17 11:33:34 +00:00
|
|
|
/// <summary>
|
2025-02-22 19:51:06 +00:00
|
|
|
/// Preselect any data source selection options?
|
2025-02-17 11:33:34 +00:00
|
|
|
/// </summary>
|
2026-07-05 12:46:31 +00:00
|
|
|
public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false);
|
2025-02-17 11:33:34 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
2025-02-22 19:51:06 +00:00
|
|
|
/// Preselect a data source selection provider?
|
2025-02-17 11:33:34 +00:00
|
|
|
/// </summary>
|
2026-07-05 12:46:31 +00:00
|
|
|
public string PreselectedAgentProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedAgentProvider, string.Empty);
|
2025-02-17 11:33:34 +00:00
|
|
|
}
|