// <auto-generated/>

#nullable disable

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

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

            Content = content.ToList();
        }

        internal InternalResponsesUserMessageItemParam(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; }
    }
}
