mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 07:13:48 +00:00
33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
using System.Linq.Expressions;
|
|
|
|
using AIStudio.Provider;
|
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
public sealed class DataTextContentCleaner(Expression<Func<Data, DataTextContentCleaner>>? configSelection = null)
|
|
{
|
|
/// <summary>
|
|
/// The default constructor for the JSON deserializer.
|
|
/// </summary>
|
|
public DataTextContentCleaner() : this(null)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Preselect any text content cleaner options?
|
|
/// </summary>
|
|
public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false);
|
|
|
|
/// <summary>
|
|
/// Preselect a text content cleaner provider?
|
|
/// </summary>
|
|
public string PreselectedAgentProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedAgentProvider, string.Empty);
|
|
|
|
/// <summary>
|
|
/// The minimum confidence level of the provider which cleans the text content.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// It applies only while PreselectAgentOptions is on, and then to every provider which cleans it, the fallbacks included.
|
|
/// </remarks>
|
|
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ManagedConfiguration.Register(configSelection, n => n.MinimumProviderConfidence, ConfidenceLevel.NONE);
|
|
} |