mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The forge tree held the package scaffolding and none of the generated sources — 2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply absent, so anything depending on this copy had a package that compiled to nothing usable. Generated from the current API document rather than reconciled with the other copy: a client is a function of the spec, so regenerating answers "which history wins" without anyone having to choose. .spec-lock records which document, so the next reader can tell.
56 lines
1.8 KiB
Swift
56 lines
1.8 KiB
Swift
//
|
|
// EvaluatorView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct EvaluatorView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is when the judge was first defined. */
|
|
public var createdAt: String?
|
|
/** Criteria is the written standard the judge applies. */
|
|
public var criteria: String?
|
|
/** Model is the model that does the grading. */
|
|
public var model: String?
|
|
/** Name is the judge's org-unique handle. */
|
|
public var name: String?
|
|
/** ScoreName is the name the resulting scores are filed under. */
|
|
public var scoreName: String?
|
|
/** UpdatedAt is when it last changed. */
|
|
public var updatedAt: String?
|
|
|
|
public init(createdAt: String? = nil, criteria: String? = nil, model: String? = nil, name: String? = nil, scoreName: String? = nil, updatedAt: String? = nil) {
|
|
self.createdAt = createdAt
|
|
self.criteria = criteria
|
|
self.model = model
|
|
self.name = name
|
|
self.scoreName = scoreName
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case criteria
|
|
case model
|
|
case name
|
|
case scoreName
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(criteria, forKey: .criteria)
|
|
try container.encodeIfPresent(model, forKey: .model)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(scoreName, forKey: .scoreName)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|