// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    internal partial class InternalComputerActionKeyPress : ComputerCallAction
    {
        public InternalComputerActionKeyPress(IEnumerable<string> keys) : base(ComputerCallActionKind.KeyPress)
        {
            Argument.AssertNotNull(keys, nameof(keys));

            Keys = keys.ToList();
        }

        internal InternalComputerActionKeyPress(ComputerCallActionKind kind, IDictionary<string, BinaryData> additionalBinaryDataProperties, IList<string> keys) : base(kind, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Keys = keys ?? new ChangeTrackingList<string>();
        }

        public IList<string> Keys { get; }
    }
}
