// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    [Experimental("OPENAI001")]
    public partial class StreamingResponseErrorUpdate : StreamingResponseUpdate
    {
        internal StreamingResponseErrorUpdate(int sequenceNumber, string code, string message, string @param) : base(InternalResponseStreamEventType.Error, sequenceNumber)
        {
            Code = code;
            Message = message;
            Param = @param;
        }

        internal StreamingResponseErrorUpdate(InternalResponseStreamEventType kind, int sequenceNumber, IDictionary<string, BinaryData> additionalBinaryDataProperties, string code, string message, string @param) : base(kind, sequenceNumber, additionalBinaryDataProperties)
        {
            Code = code;
            Message = message;
            Param = @param;
        }

        public string Code { get; }

        public string Message { get; }

        public string Param { get; }
    }
}
