// <auto-generated/>

#nullable disable

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

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

        internal InternalCreateChatCompletionStreamResponseChoiceLogprobs() : this(null, null, null)
        {
        }

        internal InternalCreateChatCompletionStreamResponseChoiceLogprobs(IReadOnlyList<ChatTokenLogProbabilityDetails> content, IReadOnlyList<ChatTokenLogProbabilityDetails> refusal, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Content = content ?? new ChangeTrackingList<ChatTokenLogProbabilityDetails>();
            Refusal = refusal ?? new ChangeTrackingList<ChatTokenLogProbabilityDetails>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public IReadOnlyList<ChatTokenLogProbabilityDetails> Content { get; }

        public IReadOnlyList<ChatTokenLogProbabilityDetails> Refusal { get; }

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