// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        internal InternalCreateChatCompletionFunctionResponseChoice(InternalCreateChatCompletionFunctionResponseChoiceFinishReason finishReason, int index, InternalChatCompletionResponseMessage message)
        {
            FinishReason = finishReason;
            Index = index;
            Message = message;
        }

        internal InternalCreateChatCompletionFunctionResponseChoice(InternalCreateChatCompletionFunctionResponseChoiceFinishReason finishReason, int index, InternalChatCompletionResponseMessage message, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            FinishReason = finishReason;
            Index = index;
            Message = message;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public InternalCreateChatCompletionFunctionResponseChoiceFinishReason FinishReason { get; }

        public int Index { get; }

        public InternalChatCompletionResponseMessage Message { get; }

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