// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    internal partial class InternalCodeInterpreterToolCallItemResource : ResponseItem
    {
        internal InternalCodeInterpreterToolCallItemResource(string id, InternalCodeInterpreterToolCallItemResourceStatus status, string code, IEnumerable<BinaryData> results) : base(InternalItemType.CodeInterpreterCall, id)
        {
            Status = status;
            Code = code;
            Results = results.ToList();
        }

        internal InternalCodeInterpreterToolCallItemResource(InternalItemType kind, string id, IDictionary<string, BinaryData> additionalBinaryDataProperties, InternalCodeInterpreterToolCallItemResourceStatus status, string containerId, string code, IList<BinaryData> results) : base(kind, id, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Status = status;
            ContainerId = containerId;
            Code = code;
            Results = results ?? new ChangeTrackingList<BinaryData>();
        }

        internal InternalCodeInterpreterToolCallItemResourceStatus Status { get; }

        public string ContainerId { get; }

        public string Code { get; }

        public IList<BinaryData> Results { get; }
    }
}
