// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.RealtimeConversation
{
    public partial class ConversationItemFinishedUpdate : ConversationUpdate
    {
        internal ConversationItemFinishedUpdate(string eventId, string responseId, int outputIndex, InternalRealtimeResponseItem internalItem) : base(eventId)
        {
            Argument.AssertNotNull(responseId, nameof(responseId));
            Argument.AssertNotNull(internalItem, nameof(internalItem));

            Kind = ConversationUpdateKind.ItemFinished;
            ResponseId = responseId;
            OutputIndex = outputIndex;
            _internalItem = internalItem;
        }

        internal ConversationItemFinishedUpdate(ConversationUpdateKind kind, string eventId, IDictionary<string, BinaryData> serializedAdditionalRawData, string responseId, int outputIndex, InternalRealtimeResponseItem internalItem) : base(kind, eventId, serializedAdditionalRawData)
        {
            ResponseId = responseId;
            OutputIndex = outputIndex;
            _internalItem = internalItem;
        }

        internal ConversationItemFinishedUpdate()
        {
        }

        public string ResponseId { get; }
        public int OutputIndex { get; }
    }
}
