// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        internal InternalCreateChatCompletionStreamResponseChoice(InternalChatCompletionStreamResponseDelta delta, int index, Chat.ChatFinishReason? finishReason)
        {
            Delta = delta;
            Index = index;
            FinishReason = finishReason;
        }

        internal InternalCreateChatCompletionStreamResponseChoice(InternalChatCompletionStreamResponseDelta delta, InternalCreateChatCompletionStreamResponseChoiceLogprobs logprobs, int index, Chat.ChatFinishReason? finishReason, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Delta = delta;
            Logprobs = logprobs;
            Index = index;
            FinishReason = finishReason;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public InternalChatCompletionStreamResponseDelta Delta { get; }

        public InternalCreateChatCompletionStreamResponseChoiceLogprobs Logprobs { get; }

        public int Index { get; }

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