// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    internal partial class InternalMCPTool : ResponseTool
    {
        public InternalMCPTool(string serverLabel, string serverUrl) : base(InternalToolType.Mcp)
        {
            Argument.AssertNotNull(serverLabel, nameof(serverLabel));
            Argument.AssertNotNull(serverUrl, nameof(serverUrl));

            ServerLabel = serverLabel;
            ServerUrl = serverUrl;
            Headers = new ChangeTrackingDictionary<string, string>();
        }

        internal InternalMCPTool(InternalToolType kind, IDictionary<string, BinaryData> additionalBinaryDataProperties, string serverLabel, string serverUrl, IDictionary<string, string> headers, BinaryData allowedTools, BinaryData requireApproval) : base(kind, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            ServerLabel = serverLabel;
            ServerUrl = serverUrl;
            Headers = headers ?? new ChangeTrackingDictionary<string, string>();
            AllowedTools = allowedTools;
            RequireApproval = requireApproval;
        }

        public string ServerLabel { get; set; }

        public string ServerUrl { get; set; }

        public IDictionary<string, string> Headers { get; set; }

        public BinaryData AllowedTools { get; set; }

        public BinaryData RequireApproval { get; set; }
    }
}
