Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

104 lines
4.2 KiB
Swift

//
// TraceView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TraceView: Sendable, Codable, ParameterConvertible, Hashable {
/** APIKeyHash is the non-reversible credential ref (never a plaintext key), so a trace correlates to the key that drove it without the store holding a secret. */
public var apiKeyHash: String?
/** ItemID is the example the call answered. */
public var datasetItemId: String?
/** Dataset is the set the graded example came from. */
public var datasetName: String?
/** EndTime is when it returned. */
public var endTime: String?
/** ID is the trace's handle, the value a score points at. */
public var id: String?
/** Input is what the model was given. */
public var input: JSONValue?
/** LatencyMs is EndTime-StartTime in milliseconds, nil when the trace carries no timing (so the console renders \"—\", never a fabricated 0). */
public var latencyMs: Double?
/** Model is the model that answered. */
public var model: String?
/** Name is the trace's label, \"eval:<run>\" for a call a run made. */
public var name: String?
/** Output is what it answered. */
public var output: String?
/** ProjectID is the sub-scope within the org the call was made under. */
public var projectId: String?
/** RunName is the run the call belongs to. */
public var runName: String?
/** SessionID groups the calls of one run. */
public var sessionId: String?
/** StartTime is when the call began. */
public var startTime: String?
/** Timestamp is the trace's own clock, equal to StartTime for a timed call. */
public var timestamp: String?
public init(apiKeyHash: String? = nil, datasetItemId: String? = nil, datasetName: String? = nil, endTime: String? = nil, id: String? = nil, input: JSONValue? = nil, latencyMs: Double? = nil, model: String? = nil, name: String? = nil, output: String? = nil, projectId: String? = nil, runName: String? = nil, sessionId: String? = nil, startTime: String? = nil, timestamp: String? = nil) {
self.apiKeyHash = apiKeyHash
self.datasetItemId = datasetItemId
self.datasetName = datasetName
self.endTime = endTime
self.id = id
self.input = input
self.latencyMs = latencyMs
self.model = model
self.name = name
self.output = output
self.projectId = projectId
self.runName = runName
self.sessionId = sessionId
self.startTime = startTime
self.timestamp = timestamp
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case apiKeyHash
case datasetItemId
case datasetName
case endTime
case id
case input
case latencyMs
case model
case name
case output
case projectId
case runName
case sessionId
case startTime
case timestamp
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(apiKeyHash, forKey: .apiKeyHash)
try container.encodeIfPresent(datasetItemId, forKey: .datasetItemId)
try container.encodeIfPresent(datasetName, forKey: .datasetName)
try container.encodeIfPresent(endTime, forKey: .endTime)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(input, forKey: .input)
try container.encodeIfPresent(latencyMs, forKey: .latencyMs)
try container.encodeIfPresent(model, forKey: .model)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(output, forKey: .output)
try container.encodeIfPresent(projectId, forKey: .projectId)
try container.encodeIfPresent(runName, forKey: .runName)
try container.encodeIfPresent(sessionId, forKey: .sessionId)
try container.encodeIfPresent(startTime, forKey: .startTime)
try container.encodeIfPresent(timestamp, forKey: .timestamp)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension TraceView: Identifiable {}