// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.RealtimeConversation
{
    internal partial class InternalRealtimeRequestItemCreateCommand : InternalRealtimeRequestCommand
    {
        public InternalRealtimeRequestItemCreateCommand(ConversationItem item)
        {
            Argument.AssertNotNull(item, nameof(item));

            Kind = InternalRealtimeRequestCommandType.ItemCreate;
            Item = item;
        }

        internal InternalRealtimeRequestItemCreateCommand(InternalRealtimeRequestCommandType kind, string eventId, IDictionary<string, BinaryData> serializedAdditionalRawData, string previousItemId, ConversationItem item) : base(kind, eventId, serializedAdditionalRawData)
        {
            PreviousItemId = previousItemId;
            Item = item;
        }

        internal InternalRealtimeRequestItemCreateCommand()
        {
        }

        public string PreviousItemId { get; set; }
        public ConversationItem Item { get; }
    }
}
