mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
71 lines
2.4 KiB
Swift
71 lines
2.4 KiB
Swift
//
|
|
// RunRecord.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct RunRecord: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** AvgScore is the mean over the scored examples. */
|
|
public var avgScore: Double?
|
|
/** CreatedAt is when the run first landed. */
|
|
public var createdAt: String?
|
|
/** Dataset is the set that was scored. */
|
|
public var dataset: String?
|
|
/** Items is how many examples were attempted. */
|
|
public var items: Int64?
|
|
/** JudgeModel is the model that graded. */
|
|
public var judgeModel: String?
|
|
/** Model is the model under test. */
|
|
public var model: String?
|
|
/** RunName is the run's label. */
|
|
public var runName: String?
|
|
/** Scored is how many produced a real score. */
|
|
public var scored: Int64?
|
|
/** UpdatedAt is when the record last changed. */
|
|
public var updatedAt: String?
|
|
|
|
public init(avgScore: Double? = nil, createdAt: String? = nil, dataset: String? = nil, items: Int64? = nil, judgeModel: String? = nil, model: String? = nil, runName: String? = nil, scored: Int64? = nil, updatedAt: String? = nil) {
|
|
self.avgScore = avgScore
|
|
self.createdAt = createdAt
|
|
self.dataset = dataset
|
|
self.items = items
|
|
self.judgeModel = judgeModel
|
|
self.model = model
|
|
self.runName = runName
|
|
self.scored = scored
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case avgScore
|
|
case createdAt
|
|
case dataset
|
|
case items
|
|
case judgeModel
|
|
case model
|
|
case runName
|
|
case scored
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(avgScore, forKey: .avgScore)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(dataset, forKey: .dataset)
|
|
try container.encodeIfPresent(items, forKey: .items)
|
|
try container.encodeIfPresent(judgeModel, forKey: .judgeModel)
|
|
try container.encodeIfPresent(model, forKey: .model)
|
|
try container.encodeIfPresent(runName, forKey: .runName)
|
|
try container.encodeIfPresent(scored, forKey: .scored)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|