// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Linq;

namespace OpenAI.Chat
{
    public partial class ChatTokenTopLogProbabilityInfo
    {
        internal IDictionary<string, BinaryData> _serializedAdditionalRawData;

        internal ChatTokenTopLogProbabilityInfo(string token, float logProbability, IEnumerable<int> utf8ByteValues)
        {
            Argument.AssertNotNull(token, nameof(token));

            Token = token;
            LogProbability = logProbability;
            Utf8ByteValues = utf8ByteValues?.ToList();
        }

        internal ChatTokenTopLogProbabilityInfo(string token, float logProbability, IReadOnlyList<int> utf8ByteValues, IDictionary<string, BinaryData> serializedAdditionalRawData)
        {
            Token = token;
            LogProbability = logProbability;
            Utf8ByteValues = utf8ByteValues;
            _serializedAdditionalRawData = serializedAdditionalRawData;
        }

        internal ChatTokenTopLogProbabilityInfo()
        {
        }

        public string Token { get; }
    }
}
