// <auto-generated/>

#nullable disable

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

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

            Content = content.ToList();
        }

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