// <auto-generated/>

#nullable disable

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

namespace OpenAI.Audio
{
    [Experimental("OPENAI001")]
    public partial class StreamingAudioTranscriptionTextDeltaUpdate : StreamingAudioTranscriptionUpdate
    {
        internal StreamingAudioTranscriptionTextDeltaUpdate(string delta) : base(StreamingAudioTranscriptionUpdateKind.TranscriptTextDelta)
        {
            Delta = delta;
            TranscriptionTokenLogProbabilities = new ChangeTrackingList<AudioTokenLogProbabilityDetails>();
        }

        internal StreamingAudioTranscriptionTextDeltaUpdate(StreamingAudioTranscriptionUpdateKind kind, IDictionary<string, BinaryData> additionalBinaryDataProperties, string delta, IReadOnlyList<AudioTokenLogProbabilityDetails> transcriptionTokenLogProbabilities) : base(kind, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Delta = delta;
            TranscriptionTokenLogProbabilities = transcriptionTokenLogProbabilities ?? new ChangeTrackingList<AudioTokenLogProbabilityDetails>();
        }

        public string Delta { get; }
    }
}
