// <auto-generated/>

#nullable disable

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

namespace OpenAI.Audio
{
    [Experimental("OPENAI001")]
    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; }
    }
}
