// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    public partial class ComputerCallOutputResponseItem : ResponseItem
    {
        internal ComputerCallOutputResponseItem(string id, string callId, ComputerOutput output, ComputerCallOutputStatus? status) : base(InternalItemType.ComputerCallOutput, id)
        {
            CallId = callId;
            AcknowledgedSafetyChecks = new ChangeTrackingList<ComputerCallSafetyCheck>();
            Output = output;
            Status = status;
        }

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

        public string CallId { get; }

        public IList<ComputerCallSafetyCheck> AcknowledgedSafetyChecks { get; }

        public ComputerOutput Output { get; }
    }
}
