// <auto-generated/>

#nullable disable

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

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

        internal MessageFailureDetails(MessageFailureReason reason)
        {
            Reason = reason;
        }

        internal MessageFailureDetails(MessageFailureReason reason, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Reason = reason;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public MessageFailureReason Reason { get; }

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