Files
swift-sdk/Sources/Hanzo/Models/O11yO11yLLMIngestScore.swift
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

66 lines
2.4 KiB
Swift

//
// O11yO11yLLMIngestScore.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yLLMIngestScore: Sendable, Codable, ParameterConvertible, Hashable {
/** Comment is a free-text note. */
public var comment: String?
/** DataType is the score's kind — NUMERIC or CATEGORICAL. Defaults from the value when empty. */
public var dataType: String?
/** Name is the score's name, e.g. helpfulness. Required. */
public var name: String?
/** ObservationID is the single observation the score attaches to, when narrowed to one. */
public var observationId: String?
/** Source is where the score came from, e.g. API, EVAL. Defaults to API. */
public var source: String?
/** StringValue is the categorical score, when the score is categorical. */
public var stringValue: String?
/** TraceID is the trace the score attaches to. Required. */
public var traceId: String?
/** Value is the numeric score. */
public var value: Double?
public init(comment: String? = nil, dataType: String? = nil, name: String? = nil, observationId: String? = nil, source: String? = nil, stringValue: String? = nil, traceId: String? = nil, value: Double? = nil) {
self.comment = comment
self.dataType = dataType
self.name = name
self.observationId = observationId
self.source = source
self.stringValue = stringValue
self.traceId = traceId
self.value = value
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case comment
case dataType
case name
case observationId
case source
case stringValue
case traceId
case value
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(comment, forKey: .comment)
try container.encodeIfPresent(dataType, forKey: .dataType)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(observationId, forKey: .observationId)
try container.encodeIfPresent(source, forKey: .source)
try container.encodeIfPresent(stringValue, forKey: .stringValue)
try container.encodeIfPresent(traceId, forKey: .traceId)
try container.encodeIfPresent(value, forKey: .value)
}
}