using System.Linq.Expressions; using AIStudio.Provider; namespace AIStudio.Settings.DataModel; public sealed class DataTextContentCleaner(Expression>? configSelection = null) { /// /// The default constructor for the JSON deserializer. /// public DataTextContentCleaner() : this(null) { } /// /// Preselect any text content cleaner options? /// public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false); /// /// Preselect a text content cleaner provider? /// public string PreselectedAgentProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedAgentProvider, string.Empty); /// /// The minimum confidence level of the provider which cleans the text content. /// /// /// It applies only while PreselectAgentOptions is on, and then to every provider which cleans it, the fallbacks included. /// public ConfidenceLevel MinimumProviderConfidence { get; set; } = ManagedConfiguration.Register(configSelection, n => n.MinimumProviderConfidence, ConfidenceLevel.NONE); }