// <auto-generated/>

#nullable disable

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

namespace OpenAI.Audio
{
    public partial class StreamingAudioTranscriptionTextDoneUpdate : StreamingAudioTranscriptionUpdate
    {
        internal StreamingAudioTranscriptionTextDoneUpdate(string text) : base(StreamingAudioTranscriptionUpdateKind.TranscriptTextDone)
        {
            Text = text;
            TranscriptionTokenLogProbabilities = new ChangeTrackingList<AudioTokenLogProbabilityDetails>();
        }

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

        public string Text { get; }
    }
}
