// <auto-generated/>

#nullable disable

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

namespace OpenAI.Graders
{
    [Experimental("OPENAI001")]
    public partial class GraderScoreModel : Grader
    {
        internal GraderScoreModel(string name, string model, IEnumerable<InternalEvalItem> input) : base(GraderType.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 GraderScoreModel(GraderType 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; }
    }
}
