// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using OpenAI;

namespace OpenAI.Realtime
{
    [Experimental("OPENAI002")]
    public partial class ConversationResponseOptions
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

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

        internal ConversationResponseOptions(string instructions, RealtimeAudioFormat? outputAudioFormat, IList<ConversationTool> tools, float? temperature, IDictionary<string, string> metadata, ResponseConversationSelection? conversationSelection, ConversationMaxTokensChoice maxOutputTokens, IList<RealtimeItem> overrideItems, ConversationVoice? voice, IList<InternalRealtimeRequestSessionModality> internalModalities, BinaryData internalToolChoice, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Instructions = instructions;
            OutputAudioFormat = outputAudioFormat;
            Tools = tools ?? new ChangeTrackingList<ConversationTool>();
            Temperature = temperature;
            Metadata = metadata ?? new ChangeTrackingDictionary<string, string>();
            ConversationSelection = conversationSelection;
            MaxOutputTokens = maxOutputTokens;
            OverrideItems = overrideItems ?? new ChangeTrackingList<RealtimeItem>();
            Voice = voice;
            _internalModalities = internalModalities ?? new ChangeTrackingList<InternalRealtimeRequestSessionModality>();
            _internalToolChoice = internalToolChoice;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Instructions { get; set; }

        public RealtimeAudioFormat? OutputAudioFormat { get; set; }

        public IList<ConversationTool> Tools { get; }

        public float? Temperature { get; set; }

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

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