// <auto-generated/>

#nullable disable

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

namespace OpenAI.Realtime
{
    [Experimental("OPENAI002")]
    public partial class ItemCreatedUpdate : RealtimeUpdate
    {
        internal ItemCreatedUpdate(string previousItemId, InternalRealtimeResponseItem internalItem) : base(RealtimeUpdateKind.ItemCreated)
        {
            PreviousItemId = previousItemId;
            _internalItem = internalItem;
        }

        internal ItemCreatedUpdate(RealtimeUpdateKind kind, string eventId, IDictionary<string, BinaryData> additionalBinaryDataProperties, string previousItemId, InternalRealtimeResponseItem internalItem) : base(kind, eventId, additionalBinaryDataProperties)
        {
            PreviousItemId = previousItemId;
            _internalItem = internalItem;
        }

        public string PreviousItemId { get; }
    }
}
