// <auto-generated/>

#nullable disable

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

namespace OpenAI.Realtime
{
    internal partial class InternalRealtimeClientEventConversationItemCreate : InternalRealtimeClientEvent
    {
        public InternalRealtimeClientEventConversationItemCreate(RealtimeItem item) : base(InternalRealtimeClientEventType.ConversationItemCreate)
        {
            Argument.AssertNotNull(item, nameof(item));

            Item = item;
        }

        internal InternalRealtimeClientEventConversationItemCreate(InternalRealtimeClientEventType kind, string eventId, IDictionary<string, BinaryData> additionalBinaryDataProperties, string previousItemId, RealtimeItem item) : base(kind, eventId, additionalBinaryDataProperties)
        {
            PreviousItemId = previousItemId;
            Item = item;
        }

        public string PreviousItemId { get; set; }

        public RealtimeItem Item { get; }
    }
}
