// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.RealtimeConversation
{
    public partial class ConversationInputAudioBufferCommittedUpdate : ConversationUpdate
    {
        internal ConversationInputAudioBufferCommittedUpdate(string eventId, string itemId) : base(eventId)
        {
            Argument.AssertNotNull(itemId, nameof(itemId));

            Kind = ConversationUpdateKind.InputAudioBufferCommitted;
            ItemId = itemId;
        }

        internal ConversationInputAudioBufferCommittedUpdate(ConversationUpdateKind kind, string eventId, IDictionary<string, BinaryData> serializedAdditionalRawData, string itemId, string previousItemId) : base(kind, eventId, serializedAdditionalRawData)
        {
            ItemId = itemId;
            PreviousItemId = previousItemId;
        }

        internal ConversationInputAudioBufferCommittedUpdate()
        {
        }

        public string ItemId { get; }
        public string PreviousItemId { get; }
    }
}
