// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    internal partial class InternalCodeInterpreterFileOutput
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        internal InternalCodeInterpreterFileOutput(IEnumerable<InternalCodeInterpreterFileOutputFile> files)
        {
            Argument.AssertNotNull(files, nameof(files));

            Files = files.ToList();
        }

        internal InternalCodeInterpreterFileOutput(string kind, IList<InternalCodeInterpreterFileOutputFile> files, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Kind = kind;
            Files = files ?? new ChangeTrackingList<InternalCodeInterpreterFileOutputFile>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Kind { get; } = "files";

        internal IList<InternalCodeInterpreterFileOutputFile> Files { get; }

        internal IDictionary<string, BinaryData> SerializedAdditionalRawData
        {
            get => _additionalBinaryDataProperties;
            set => _additionalBinaryDataProperties = value;
        }
    }
}
