Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

51 lines
1.8 KiB
Swift

//
// RunRequest.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct RunRequest: Sendable, Codable, ParameterConvertible, Hashable {
/** Dataset is the set to score, which must belong to the caller's org and hold at least one ACTIVE example. */
public var dataset: String
/** Judge is the judge to grade with. Omitted, the model under test grades itself against a default correctness criterion under the score name \"llm-judge\". */
public var judge: JudgeSpec?
/** Limit caps how many examples this run scores. It defaults to 20, and anything above 100 falls back to that default. */
public var limit: Int64?
/** Model is the model under test. */
public var model: String
/** RunName labels the run and is generated from the clock when omitted. It must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$. */
public var runName: String?
public init(dataset: String, judge: JudgeSpec? = nil, limit: Int64? = nil, model: String, runName: String? = nil) {
self.dataset = dataset
self.judge = judge
self.limit = limit
self.model = model
self.runName = runName
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case dataset
case judge
case limit
case model
case runName
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(dataset, forKey: .dataset)
try container.encodeIfPresent(judge, forKey: .judge)
try container.encodeIfPresent(limit, forKey: .limit)
try container.encode(model, forKey: .model)
try container.encodeIfPresent(runName, forKey: .runName)
}
}