// <auto-generated/>

#nullable disable

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

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

        internal InternalMessageDeltaObjectDelta() : this(null, default, null)
        {
        }

        internal InternalMessageDeltaObjectDelta(IList<InternalMessageDeltaContent> content, MessageRole? role, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Content = content ?? new ChangeTrackingList<InternalMessageDeltaContent>();
            Role = role;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        internal IList<InternalMessageDeltaContent> Content { get; }

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