// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Linq;

namespace OpenAI.Assistants
{
    internal partial class MessageContentTextObjectText
    {
        internal IDictionary<string, BinaryData> _serializedAdditionalRawData;

        public MessageContentTextObjectText(string value, IEnumerable<MessageContentTextObjectAnnotation> annotations)
        {
            Argument.AssertNotNull(value, nameof(value));
            Argument.AssertNotNull(annotations, nameof(annotations));

            Value = value;
            Annotations = annotations.ToList();
        }

        internal MessageContentTextObjectText(string value, IList<MessageContentTextObjectAnnotation> annotations, IDictionary<string, BinaryData> serializedAdditionalRawData)
        {
            Value = value;
            Annotations = annotations;
            _serializedAdditionalRawData = serializedAdditionalRawData;
        }

        internal MessageContentTextObjectText()
        {
        }

        public string Value { get; init; }
        public IList<MessageContentTextObjectAnnotation> Annotations { get; }
    }
}
