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.
51 lines
1.7 KiB
Swift
51 lines
1.7 KiB
Swift
//
|
|
// RunPoint.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct RunPoint: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** At is when the run was recorded. */
|
|
public var at: Date?
|
|
/** Delta is the change in score from the previous run for this model, absent on the first. It is the number the whole surface exists to make visible. */
|
|
public var delta: Double?
|
|
/** N is how many items the run covered. Two runs are only comparable at the same n, which is why it travels with every point rather than being assumed. */
|
|
public var n: Int64?
|
|
/** Run is the measurement id these attempts were recorded under. */
|
|
public var run: String?
|
|
/** Score is accuracy over the items this run covered, as a percentage. */
|
|
public var score: Double?
|
|
|
|
public init(at: Date? = nil, delta: Double? = nil, n: Int64? = nil, run: String? = nil, score: Double? = nil) {
|
|
self.at = at
|
|
self.delta = delta
|
|
self.n = n
|
|
self.run = run
|
|
self.score = score
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case at
|
|
case delta
|
|
case n
|
|
case run
|
|
case score
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(at, forKey: .at)
|
|
try container.encodeIfPresent(delta, forKey: .delta)
|
|
try container.encodeIfPresent(n, forKey: .n)
|
|
try container.encodeIfPresent(run, forKey: .run)
|
|
try container.encodeIfPresent(score, forKey: .score)
|
|
}
|
|
}
|
|
|