// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    internal partial class InternalResponsesDeveloperMessageItemParam : InternalResponsesMessageItemParam
    {
        public InternalResponsesDeveloperMessageItemParam(IEnumerable<ResponseContentPart> content) : base(InternalResponsesMessageRole.Developer)
        {
            Argument.AssertNotNull(content, nameof(content));

            Content = content.ToList();
        }

        internal InternalResponsesDeveloperMessageItemParam(InternalItemType kind, IDictionary<string, BinaryData> additionalBinaryDataProperties, InternalResponsesMessageRole role, IList<ResponseContentPart> content) : base(kind, additionalBinaryDataProperties, role)
        {
            // Plugin customization: ensure initialization of collections
            Content = content ?? new ChangeTrackingList<ResponseContentPart>();
        }

        public IList<ResponseContentPart> Content { get; }
    }
}
