// <auto-generated/>

#nullable disable

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

namespace OpenAI.Evals
{
    internal partial class InternalEvalGraderScoreModelParams : InternalEvalGraderParams
    {
        internal InternalEvalGraderScoreModelParams(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 InternalEvalGraderScoreModelParams(GraderType kind, IDictionary<string, BinaryData> additionalBinaryDataProperties, string name, string model, BinaryData samplingParams, IList<InternalEvalItem> input, IList<float> range, float? passThreshold) : 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>();
            PassThreshold = passThreshold;
        }

        public string Name { get; }

        public string Model { get; }

        public BinaryData SamplingParams { get; set; }

        internal IList<InternalEvalItem> Input { get; }

        public IList<float> Range { get; }

        public float? PassThreshold { get; set; }
    }
}
