// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    internal partial class InternalComputerUsePreviewToolCallOutputItemParam : InternalItemParam
    {
        public InternalComputerUsePreviewToolCallOutputItemParam(string callId, ComputerOutput output) : base(InternalItemType.ComputerCallOutput)
        {
            Argument.AssertNotNull(callId, nameof(callId));
            Argument.AssertNotNull(output, nameof(output));

            CallId = callId;
            AcknowledgedSafetyChecks = new ChangeTrackingList<ComputerCallSafetyCheck>();
            Output = output;
        }

        internal InternalComputerUsePreviewToolCallOutputItemParam(InternalItemType kind, IDictionary<string, BinaryData> additionalBinaryDataProperties, string callId, IList<ComputerCallSafetyCheck> acknowledgedSafetyChecks, ComputerOutput output) : base(kind, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            CallId = callId;
            AcknowledgedSafetyChecks = acknowledgedSafetyChecks ?? new ChangeTrackingList<ComputerCallSafetyCheck>();
            Output = output;
        }

        public string CallId { get; }

        public IList<ComputerCallSafetyCheck> AcknowledgedSafetyChecks { get; }

        public ComputerOutput Output { get; }
    }
}
