// <auto-generated/>

#nullable disable

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

namespace OpenAI.Realtime
{
    [Experimental("OPENAI002")]
    public partial class InputAudioTranscriptionDeltaUpdate : RealtimeUpdate
    {
        internal InputAudioTranscriptionDeltaUpdate(string itemId) : base(RealtimeUpdateKind.InputTranscriptionDelta)
        {
            ItemId = itemId;
            Logprobs = new ChangeTrackingList<InternalDotNetRealtimeLogProbProperties>();
        }

        internal InputAudioTranscriptionDeltaUpdate(RealtimeUpdateKind kind, string eventId, IDictionary<string, BinaryData> additionalBinaryDataProperties, string itemId, int? contentIndex, string delta, IList<InternalDotNetRealtimeLogProbProperties> logprobs) : base(kind, eventId, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            ItemId = itemId;
            ContentIndex = contentIndex;
            Delta = delta;
            Logprobs = logprobs ?? new ChangeTrackingList<InternalDotNetRealtimeLogProbProperties>();
        }

        public string ItemId { get; }

        public int? ContentIndex { get; }

        public string Delta { get; }
    }
}
