// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    internal partial class InternalMCPListToolsItemParam : InternalItemParam
    {
        internal InternalMCPListToolsItemParam(string serverLabel, IEnumerable<InternalMCPListToolsTool> tools) : base(InternalItemType.McpListTools)
        {
            Argument.AssertNotNull(serverLabel, nameof(serverLabel));
            Argument.AssertNotNull(tools, nameof(tools));

            ServerLabel = serverLabel;
            Tools = tools.ToList();
        }

        internal InternalMCPListToolsItemParam(InternalItemType kind, IDictionary<string, BinaryData> additionalBinaryDataProperties, string serverLabel, IList<InternalMCPListToolsTool> tools, string error) : base(kind, 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; set; }
    }
}
