// <auto-generated/>

#nullable disable

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

namespace OpenAI.Realtime
{
    [Experimental("OPENAI002")]
    public partial class OutputTextFinishedUpdate : RealtimeUpdate
    {
        internal OutputTextFinishedUpdate(string responseId, string itemId, int outputIndex, int contentIndex, string text) : base(RealtimeUpdateKind.ItemStreamingPartTextFinished)
        {
            ResponseId = responseId;
            ItemId = itemId;
            OutputIndex = outputIndex;
            ContentIndex = contentIndex;
            Text = text;
        }

        internal OutputTextFinishedUpdate(RealtimeUpdateKind kind, string eventId, IDictionary<string, BinaryData> additionalBinaryDataProperties, string responseId, string itemId, int outputIndex, int contentIndex, string text) : base(kind, eventId, additionalBinaryDataProperties)
        {
            ResponseId = responseId;
            ItemId = itemId;
            OutputIndex = outputIndex;
            ContentIndex = contentIndex;
            Text = text;
        }

        public string ResponseId { get; }

        public string ItemId { get; }

        public int OutputIndex { get; }

        public int ContentIndex { get; }

        public string Text { get; }
    }
}
