2026-05-12 15:26:02 +00:00
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
|
|
|
|
using AIStudio.Settings;
|
|
|
|
|
|
2026-04-09 13:37:53 +00:00
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
|
|
2026-05-12 15:26:02 +00:00
|
|
|
public sealed class DataTools(Expression<Func<Data, DataTools>>? configSelection = null)
|
2026-04-09 13:37:53 +00:00
|
|
|
{
|
2026-05-12 15:26:02 +00:00
|
|
|
public DataTools() : this(null)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-09 13:37:53 +00:00
|
|
|
public Dictionary<string, Dictionary<string, string>> Settings { get; set; } = [];
|
|
|
|
|
|
|
|
|
|
public Dictionary<string, HashSet<string>> DefaultToolIdsByComponent { get; set; } = [];
|
|
|
|
|
|
|
|
|
|
public HashSet<string> VisibleToolSelectionComponents { get; set; } = [];
|
2026-05-12 15:26:02 +00:00
|
|
|
|
|
|
|
|
public Dictionary<string, string> MinimumProviderConfidenceByToolId { get; set; } = ManagedConfiguration.Register<DataTools, Dictionary<string, string>>(
|
|
|
|
|
configSelection,
|
|
|
|
|
x => x.MinimumProviderConfidenceByToolId,
|
|
|
|
|
new Dictionary<string, string>(StringComparer.Ordinal));
|
2026-05-18 13:26:33 +00:00
|
|
|
|
|
|
|
|
public string ReadWebPageAllowedPrivateHosts { get; set; } = ManagedConfiguration.Register<DataTools>(
|
|
|
|
|
configSelection,
|
|
|
|
|
x => x.ReadWebPageAllowedPrivateHosts,
|
|
|
|
|
string.Empty);
|
2026-04-09 13:37:53 +00:00
|
|
|
}
|