// <auto-generated/>

#nullable disable

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

namespace OpenAI.Graders
{
    internal partial class InternalGraderScoreModel : InternalGrader
    {
        internal InternalGraderScoreModel(string name, string model, IEnumerable<InternalEvalItem> input) : base(InternalGraderType.ScoreModel)
        {
            Argument.AssertNotNull(name, nameof(name));
            Argument.AssertNotNull(model, nameof(model));
            Argument.AssertNotNull(input, nameof(input));

            Name = name;
            Model = model;
            Input = input.ToList();
            Range = new ChangeTrackingList<float>();
        }

        internal InternalGraderScoreModel(InternalGraderType kind, IDictionary<string, BinaryData> additionalBinaryDataProperties, string name, string model, BinaryData samplingParams, IList<InternalEvalItem> input, IList<float> range) : base(kind, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Name = name;
            Model = model;
            SamplingParams = samplingParams;
            Input = input ?? new ChangeTrackingList<InternalEvalItem>();
            Range = range ?? new ChangeTrackingList<float>();
        }

        public string Name { get; set; }

        public string Model { get; set; }

        public BinaryData SamplingParams { get; set; }

        internal IList<InternalEvalItem> Input { get; }

        public IList<float> Range { get; }
    }
}
