// <auto-generated/>

#nullable disable

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

namespace OpenAI.Evals
{
    internal partial class InternalEvalGraderLabelModelResource : InternalEvalGraderResource
    {
        internal InternalEvalGraderLabelModelResource(string name, string model, IEnumerable<InternalEvalItem> input, IEnumerable<string> labels, IEnumerable<string> passingLabels) : base(GraderType.LabelModel)
        {
            Name = name;
            Model = model;
            Input = input.ToList();
            Labels = labels.ToList();
            PassingLabels = passingLabels.ToList();
        }

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

        public string Name { get; }

        public string Model { get; }

        internal IList<InternalEvalItem> Input { get; }

        public IList<string> Labels { get; }

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