// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using OpenAI;
using OpenAI.Chat;
using OpenAI.Responses;

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

        public InternalEvalCompletionsRunDataSourceParamsSamplingParams() : this(default, default, default, default, null, null, null)
        {
        }

        internal InternalEvalCompletionsRunDataSourceParamsSamplingParams(float? temperature, int? maxCompletionTokens, float? topP, int? seed, ResponseTextFormat responseFormat, IList<ChatTool> tools, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Temperature = temperature;
            MaxCompletionTokens = maxCompletionTokens;
            TopP = topP;
            Seed = seed;
            ResponseFormat = responseFormat;
            Tools = tools ?? new ChangeTrackingList<ChatTool>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public float? Temperature { get; set; }

        public int? MaxCompletionTokens { get; set; }

        public float? TopP { get; set; }

        public int? Seed { get; set; }

        public ResponseTextFormat ResponseFormat { get; set; }

        public IList<ChatTool> Tools { get; }

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