// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    [Experimental("OPENAI001")]
    public partial class StreamingResponseUpdate
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        private protected StreamingResponseUpdate(InternalResponseStreamEventType kind, int sequenceNumber)
        {
            Kind = kind;
            SequenceNumber = sequenceNumber;
        }

        internal StreamingResponseUpdate(InternalResponseStreamEventType kind, int sequenceNumber, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Kind = kind;
            SequenceNumber = sequenceNumber;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        internal InternalResponseStreamEventType Kind { get; set; }

        public int SequenceNumber { get; }

        internal IDictionary<string, BinaryData> SerializedAdditionalRawData
        {
            get => _additionalBinaryDataProperties;
            set => _additionalBinaryDataProperties = value;
        }
    }
}
