// <auto-generated/>

#nullable disable

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

namespace OpenAI.Evals
{
    internal partial class InternalEvalGraderScoreModelResource : InternalEvalGraderResource
    {
        internal InternalEvalGraderScoreModelResource(string name, string model, IEnumerable<InternalEvalItem> input) : base(InternalGraderType.ScoreModel)
        {
            Name = name;
            Model = model;
            Input = input.ToList();
            Range = new ChangeTrackingList<float>();
        }

        internal InternalEvalGraderScoreModelResource(InternalGraderType 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; }

        internal IList<InternalEvalItem> Input { get; }

        public IList<float> Range { get; }

        public float? PassThreshold { get; }
    }
}
