// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    internal partial class InternalMCPListToolsItemResource : ResponseItem
    {
        internal InternalMCPListToolsItemResource(string id, string serverLabel, IEnumerable<InternalMCPListToolsTool> tools) : base(InternalItemType.McpListTools, id)
        {
            ServerLabel = serverLabel;
            Tools = tools.ToList();
        }

        internal InternalMCPListToolsItemResource(InternalItemType kind, string id, IDictionary<string, BinaryData> additionalBinaryDataProperties, string serverLabel, IList<InternalMCPListToolsTool> tools, string error) : base(kind, id, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            ServerLabel = serverLabel;
            Tools = tools ?? new ChangeTrackingList<InternalMCPListToolsTool>();
            Error = error;
        }

        public string ServerLabel { get; }

        internal IList<InternalMCPListToolsTool> Tools { get; }

        public string Error { get; }
    }
}
