// <auto-generated/>

#nullable disable

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

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

        internal MessageCreationOptions(IList<MessageCreationAttachment> attachments, IDictionary<string, string> metadata, MessageRole role, IList<MessageContent> content, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Attachments = attachments ?? new ChangeTrackingList<MessageCreationAttachment>();
            Metadata = metadata ?? new ChangeTrackingDictionary<string, string>();
            Role = role;
            Content = content ?? new ChangeTrackingList<MessageContent>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public IList<MessageCreationAttachment> Attachments { get; set; }

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

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