// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using OpenAI;

namespace OpenAI.Audio
{
    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; }
    }
}
