// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using OpenAI;

namespace OpenAI.Chat
{
    internal partial class InternalChatCompletionRequestMessageContentPartImage
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        public InternalChatCompletionRequestMessageContentPartImage(InternalChatCompletionRequestMessageContentPartImageImageUrl imageUrl)
        {
            Argument.AssertNotNull(imageUrl, nameof(imageUrl));

            ImageUrl = imageUrl;
        }

        internal InternalChatCompletionRequestMessageContentPartImage(InternalChatCompletionRequestMessageContentPartImageType @type, InternalChatCompletionRequestMessageContentPartImageImageUrl imageUrl, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Type = @type;
            ImageUrl = imageUrl;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public InternalChatCompletionRequestMessageContentPartImageType Type { get; } = "image_url";

        public InternalChatCompletionRequestMessageContentPartImageImageUrl ImageUrl { get; }

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