// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using OpenAI;

namespace OpenAI.Evals
{
    internal partial class InternalCreateEvalRunRequest
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        internal InternalCreateEvalRunRequest(InternalEvalRunDataSourceParams dataSource)
        {
            Argument.AssertNotNull(dataSource, nameof(dataSource));

            Metadata = new ChangeTrackingDictionary<string, string>();
            DataSource = dataSource;
        }

        internal InternalCreateEvalRunRequest(string name, IDictionary<string, string> metadata, InternalEvalRunDataSourceParams dataSource, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Name = name;
            Metadata = metadata ?? new ChangeTrackingDictionary<string, string>();
            DataSource = dataSource;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Name { get; set; }

        public IDictionary<string, string> Metadata { get; }

        internal InternalEvalRunDataSourceParams DataSource { get; }

        internal IDictionary<string, BinaryData> SerializedAdditionalRawData
        {
            get => _additionalBinaryDataProperties;
            set => _additionalBinaryDataProperties = value;
        }
    }
}
