20 lines
564 B
C#
20 lines
564 B
C#
using System.Collections.ObjectModel;
|
|
|
|
namespace RLHF.Generator.TrainingData;
|
|
|
|
public sealed record TrainingCategoryValue
|
|
{
|
|
public TrainingCategoryValue(string canonicalForm, IReadOnlyList<string> allowedForms)
|
|
{
|
|
ArgumentException.ThrowIfNullOrWhiteSpace(canonicalForm);
|
|
ArgumentNullException.ThrowIfNull(allowedForms);
|
|
|
|
CanonicalForm = canonicalForm;
|
|
AllowedForms = new ReadOnlyCollection<string>([.. allowedForms]);
|
|
}
|
|
|
|
public string CanonicalForm { get; }
|
|
|
|
public IReadOnlyList<string> AllowedForms { get; }
|
|
}
|