Files
AI-Studio/app/MindWork AI Studio/Settings/DataModel/DataTextContentCleaner.cs
T

33 lines
1.3 KiB
C#
Raw Normal View History

using System.Linq.Expressions;
using AIStudio.Provider;
2024-08-05 21:12:52 +02:00
namespace AIStudio.Settings.DataModel;
public sealed class DataTextContentCleaner(Expression<Func<Data, DataTextContentCleaner>>? configSelection = null)
2024-08-05 21:12:52 +02:00
{
/// <summary>
/// The default constructor for the JSON deserializer.
/// </summary>
public DataTextContentCleaner() : this(null)
{
}
2024-08-05 21:12:52 +02:00
/// <summary>
/// Preselect any text content cleaner options?
/// </summary>
public bool PreselectAgentOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectAgentOptions, false);
2024-08-05 21:12:52 +02:00
/// <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);
2024-08-05 21:12:52 +02:00
}