// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    internal partial class InternalReasoningItemParam : InternalItemParam
    {
        public InternalReasoningItemParam(IEnumerable<ReasoningSummaryPart> summary) : base(InternalItemType.Reasoning)
        {
            Argument.AssertNotNull(summary, nameof(summary));

            Summary = summary.ToList();
        }

        internal InternalReasoningItemParam(InternalItemType kind, IDictionary<string, BinaryData> additionalBinaryDataProperties, string encryptedContent, IList<ReasoningSummaryPart> summary) : base(kind, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            EncryptedContent = encryptedContent;
            Summary = summary ?? new ChangeTrackingList<ReasoningSummaryPart>();
        }

        public string EncryptedContent { get; set; }

        public IList<ReasoningSummaryPart> Summary { get; }
    }
}
