// <auto-generated/>

#nullable disable

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

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

        internal InternalRealtimeResponse(IDictionary<string, string> metadata)
        {
            Metadata = metadata;
            Output = new ChangeTrackingList<ConversationItem>();
            Modalities = new ChangeTrackingList<InternalRealtimeResponseModality>();
        }

        internal InternalRealtimeResponse(string id, InternalRealtimeResponseObject? @object, ConversationStatus? status, ConversationStatusDetails statusDetails, IDictionary<string, string> metadata, ConversationTokenUsage usage, string conversationId, float? temperature, BinaryData maxOutputTokens, IReadOnlyList<ConversationItem> output, IReadOnlyList<InternalRealtimeResponseModality> modalities, ConversationVoice? voice, ConversationAudioFormat? outputAudioFormat, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Id = id;
            Object = @object;
            Status = status;
            StatusDetails = statusDetails;
            Metadata = metadata;
            Usage = usage;
            ConversationId = conversationId;
            Temperature = temperature;
            MaxOutputTokens = maxOutputTokens;
            Output = output;
            Modalities = modalities;
            Voice = voice;
            OutputAudioFormat = outputAudioFormat;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Id { get; }

        public InternalRealtimeResponseObject? Object { get; }

        public ConversationStatus? Status { get; }

        public ConversationStatusDetails StatusDetails { get; }

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

        public ConversationTokenUsage Usage { get; }

        public string ConversationId { get; }

        public float? Temperature { get; }

        public BinaryData MaxOutputTokens { get; }

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