// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Linq;
using OpenAI;
using OpenAI.Graders;

namespace OpenAI.Evals
{
    internal partial class InternalEvalGraderLabelModelParams : InternalEvalGraderParams
    {
        public InternalEvalGraderLabelModelParams(string name, string model, IEnumerable<BinaryData> input, IEnumerable<string> labels, IEnumerable<string> passingLabels) : base(InternalGraderType.LabelModel)
        {
            Argument.AssertNotNull(name, nameof(name));
            Argument.AssertNotNull(model, nameof(model));
            Argument.AssertNotNull(input, nameof(input));
            Argument.AssertNotNull(labels, nameof(labels));
            Argument.AssertNotNull(passingLabels, nameof(passingLabels));

            Name = name;
            Model = model;
            Input = input.ToList();
            Labels = labels.ToList();
            PassingLabels = passingLabels.ToList();
        }

        internal InternalEvalGraderLabelModelParams(InternalGraderType kind, IDictionary<string, BinaryData> additionalBinaryDataProperties, string name, string model, IList<BinaryData> input, IList<string> labels, IList<string> passingLabels) : base(kind, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Name = name;
            Model = model;
            Input = input ?? new ChangeTrackingList<BinaryData>();
            Labels = labels ?? new ChangeTrackingList<string>();
            PassingLabels = passingLabels ?? new ChangeTrackingList<string>();
        }

        public string Name { get; }

        public string Model { get; }

        public IList<BinaryData> Input { get; }

        public IList<string> Labels { get; }

        public IList<string> PassingLabels { get; }
    }
}
