mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 20:32:11 +00:00
23 lines
843 B
C#
23 lines
843 B
C#
using System.Linq.Expressions;
|
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
public sealed class DataAgentDataSourceSelection(Expression<Func<Data, DataAgentDataSourceSelection>>? configSelection = null)
|
|
{
|
|
/// <summary>
|
|
/// The default constructor for the JSON deserializer.
|
|
/// </summary>
|
|
public DataAgentDataSourceSelection() : this(null)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Preselect any data source selection options?
|
|
/// </summary>
|
|
public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false);
|
|
|
|
/// <summary>
|
|
/// Preselect a data source selection provider?
|
|
/// </summary>
|
|
public string PreselectedAgentProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedAgentProvider, string.Empty);
|
|
} |