// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace OpenAI.Graders
{
    [Experimental("OPENAI001")]
    public partial class RunGraderResponseMetadata
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

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

        internal RunGraderResponseMetadata(string name, string kind, RunGraderResponseMetadataErrors 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; }

        public RunGraderResponseMetadataErrors 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;
        }
    }
}
