// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        internal InternalCreateChatCompletionStreamResponseUsage(int completionTokens, int promptTokens, int totalTokens)
        {
            CompletionTokens = completionTokens;
            PromptTokens = promptTokens;
            TotalTokens = totalTokens;
        }

        internal InternalCreateChatCompletionStreamResponseUsage(int completionTokens, int promptTokens, int totalTokens, ChatOutputTokenUsageDetails completionTokensDetails, ChatInputTokenUsageDetails promptTokensDetails, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            CompletionTokens = completionTokens;
            PromptTokens = promptTokens;
            TotalTokens = totalTokens;
            CompletionTokensDetails = completionTokensDetails;
            PromptTokensDetails = promptTokensDetails;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public int CompletionTokens { get; }

        public int PromptTokens { get; }

        public int TotalTokens { get; }

        public ChatOutputTokenUsageDetails CompletionTokensDetails { get; }

        public ChatInputTokenUsageDetails PromptTokensDetails { get; }

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