// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    public partial class ResponseCreationOptions
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        internal ResponseCreationOptions(IDictionary<string, string> metadata, float? temperature, float? topP, InternalServiceTier? serviceTier, string previousResponseId, bool? background, string instructions, IList<InternalIncludable> include, string model, IList<ResponseItem> input, bool? stream, string endUserId, ResponseReasoningOptions reasoningOptions, int? maxOutputTokenCount, ResponseTextOptions textOptions, ResponseTruncationMode? truncationMode, bool? parallelToolCallsEnabled, bool? storedOutputEnabled, ResponseToolChoice toolChoice, IList<ResponseTool> tools, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Metadata = metadata ?? new ChangeTrackingDictionary<string, string>();
            Temperature = temperature;
            TopP = topP;
            ServiceTier = serviceTier;
            PreviousResponseId = previousResponseId;
            Background = background;
            Instructions = instructions;
            Include = include ?? new ChangeTrackingList<InternalIncludable>();
            Model = model;
            Input = input ?? new ChangeTrackingList<ResponseItem>();
            Stream = stream;
            EndUserId = endUserId;
            ReasoningOptions = reasoningOptions;
            MaxOutputTokenCount = maxOutputTokenCount;
            TextOptions = textOptions;
            TruncationMode = truncationMode;
            ParallelToolCallsEnabled = parallelToolCallsEnabled;
            StoredOutputEnabled = storedOutputEnabled;
            ToolChoice = toolChoice;
            Tools = tools ?? new ChangeTrackingList<ResponseTool>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

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

        public float? Temperature { get; set; }

        public float? TopP { get; set; }

        internal InternalServiceTier? ServiceTier { get; set; }

        public string PreviousResponseId { get; set; }

        public bool? Background { get; set; }

        public string Instructions { get; set; }

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