// <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, ChatFinishReason? finishReason)
        {
            Delta = delta;
            Index = index;
            FinishReason = finishReason;
        }

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

        internal InternalChatCompletionStreamResponseDelta Delta { get; }

        internal InternalCreateChatCompletionStreamResponseChoiceLogprobs Logprobs { get; }

        public int Index { get; }

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