// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    internal partial class InternalResponsesSystemMessage : MessageResponseItem
    {
        public InternalResponsesSystemMessage(IEnumerable<ResponseContentPart> internalContent) : base(InternalResponsesMessageRole.System)
        {
            Argument.AssertNotNull(internalContent, nameof(internalContent));

            InternalContent = internalContent.ToList();
        }

        internal InternalResponsesSystemMessage(InternalResponsesItemType @type, string id, IDictionary<string, BinaryData> additionalBinaryDataProperties, MessageStatus? status, InternalResponsesMessageRole internalRole, IList<ResponseContentPart> internalContent) : base(@type, id, additionalBinaryDataProperties, status, internalRole)
        {
            // Plugin customization: ensure initialization of collection
            InternalContent = internalContent ?? new ChangeTrackingList<ResponseContentPart>();
        }
    }
}
