// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.LegacyCompletions
{
    internal partial class InternalCreateCompletionResponseChoice
    {
        internal IDictionary<string, BinaryData> _serializedAdditionalRawData;

        internal InternalCreateCompletionResponseChoice(InternalCreateCompletionResponseChoiceFinishReason finishReason, int index, InternalCreateCompletionResponseChoiceLogprobs logprobs, string text)
        {
            Argument.AssertNotNull(text, nameof(text));

            FinishReason = finishReason;
            Index = index;
            Logprobs = logprobs;
            Text = text;
        }

        internal InternalCreateCompletionResponseChoice(InternalCreateCompletionResponseChoiceFinishReason finishReason, int index, InternalCreateCompletionResponseChoiceLogprobs logprobs, string text, IDictionary<string, BinaryData> serializedAdditionalRawData)
        {
            FinishReason = finishReason;
            Index = index;
            Logprobs = logprobs;
            Text = text;
            _serializedAdditionalRawData = serializedAdditionalRawData;
        }

        internal InternalCreateCompletionResponseChoice()
        {
        }

        public InternalCreateCompletionResponseChoiceFinishReason FinishReason { get; }
        public int Index { get; }
        public InternalCreateCompletionResponseChoiceLogprobs Logprobs { get; }
        public string Text { get; }
    }
}
