// <auto-generated/>

#nullable disable

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

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

            Content = content.ToList();
        }

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