// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

            Kind = ConversationUpdateKind.Error;
            _error = error;
        }

        internal ConversationErrorUpdate(ConversationUpdateKind kind, string eventId, IDictionary<string, BinaryData> serializedAdditionalRawData, InternalRealtimeResponseError error) : base(kind, eventId, serializedAdditionalRawData)
        {
            _error = error;
        }

        internal ConversationErrorUpdate()
        {
        }
    }
}
