// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    [Experimental("OPENAICUA001")]
    public partial class ComputerCallResponseItem : ResponseItem
    {
        internal ComputerCallResponseItem(string id, string callId, ComputerCallAction action, IEnumerable<ComputerCallSafetyCheck> pendingSafetyChecks, ComputerCallStatus? status) : base(InternalItemType.ComputerCall, id)
        {
            CallId = callId;
            Action = action;
            PendingSafetyChecks = pendingSafetyChecks.ToList();
            Status = status;
        }

        internal ComputerCallResponseItem(InternalItemType kind, string id, IDictionary<string, BinaryData> additionalBinaryDataProperties, string callId, ComputerCallAction action, IList<ComputerCallSafetyCheck> pendingSafetyChecks, ComputerCallStatus? status) : base(kind, id, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            CallId = callId;
            Action = action;
            PendingSafetyChecks = pendingSafetyChecks ?? new ChangeTrackingList<ComputerCallSafetyCheck>();
            Status = status;
        }

        public string CallId { get; }

        public ComputerCallAction Action { get; }

        public IList<ComputerCallSafetyCheck> PendingSafetyChecks { get; }
    }
}
