// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        internal InternalFineTuningJobCheckpoint(string id, DateTimeOffset createdAt, string fineTunedModelCheckpoint, int stepNumber, InternalFineTuningJobCheckpointMetrics metrics, string fineTuningJobId)
        {
            Id = id;
            CreatedAt = createdAt;
            FineTunedModelCheckpoint = fineTunedModelCheckpoint;
            StepNumber = stepNumber;
            Metrics = metrics;
            FineTuningJobId = fineTuningJobId;
        }

        internal InternalFineTuningJobCheckpoint(string id, DateTimeOffset createdAt, string fineTunedModelCheckpoint, int stepNumber, InternalFineTuningJobCheckpointMetrics metrics, string fineTuningJobId, InternalFineTuningJobCheckpointObject @object, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Id = id;
            CreatedAt = createdAt;
            FineTunedModelCheckpoint = fineTunedModelCheckpoint;
            StepNumber = stepNumber;
            Metrics = metrics;
            FineTuningJobId = fineTuningJobId;
            Object = @object;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Id { get; }

        public DateTimeOffset CreatedAt { get; }

        public string FineTunedModelCheckpoint { get; }

        public int StepNumber { get; }

        public InternalFineTuningJobCheckpointMetrics Metrics { get; }

        public string FineTuningJobId { get; }

        public InternalFineTuningJobCheckpointObject Object { get; } = "fine_tuning.job.checkpoint";

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