// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        internal InternalRunGraderResponseMetadata(string name, string kind, InternalRunGraderResponseMetadataErrors errors, float executionTime, BinaryData scores, int? tokenUsage, string sampledModelName)
        {
            Name = name;
            Kind = kind;
            Errors = errors;
            ExecutionTime = executionTime;
            Scores = scores;
            TokenUsage = tokenUsage;
            SampledModelName = sampledModelName;
        }

        internal InternalRunGraderResponseMetadata(string name, string kind, InternalRunGraderResponseMetadataErrors errors, float executionTime, BinaryData scores, int? tokenUsage, string sampledModelName, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Name = name;
            Kind = kind;
            Errors = errors;
            ExecutionTime = executionTime;
            Scores = scores;
            TokenUsage = tokenUsage;
            SampledModelName = sampledModelName;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Name { get; }

        public string Kind { get; }

        internal InternalRunGraderResponseMetadataErrors Errors { get; }

        public float ExecutionTime { get; }

        public BinaryData Scores { get; }

        public int? TokenUsage { get; }

        public string SampledModelName { get; }

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