// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Responses
{
    public partial class ResponseTokenUsage
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        internal ResponseTokenUsage(int inputTokenCount, int outputTokenCount, int totalTokenCount, ResponseInputTokenUsageDetails inputTokenDetails, ResponseOutputTokenUsageDetails outputTokenDetails)
        {
            InputTokenCount = inputTokenCount;
            OutputTokenCount = outputTokenCount;
            TotalTokenCount = totalTokenCount;
            InputTokenDetails = inputTokenDetails;
            OutputTokenDetails = outputTokenDetails;
        }

        internal ResponseTokenUsage(int inputTokenCount, int outputTokenCount, int totalTokenCount, ResponseInputTokenUsageDetails inputTokenDetails, ResponseOutputTokenUsageDetails outputTokenDetails, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            InputTokenCount = inputTokenCount;
            OutputTokenCount = outputTokenCount;
            TotalTokenCount = totalTokenCount;
            InputTokenDetails = inputTokenDetails;
            OutputTokenDetails = outputTokenDetails;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

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