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

69 lines
2.5 KiB
Swift

//
// O11yO11yLLMSession.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yLLMSession: Sendable, Codable, ParameterConvertible, Hashable {
/** CompletionTokens is the conversation's total output tokens. */
public var completionTokens: Int64?
/** ID is the session id. */
public var id: String?
/** Observations is how many observations the conversation holds. */
public var observations: Int64?
/** PromptTokens is the conversation's total input tokens. */
public var promptTokens: Int64?
/** TotalCost is the conversation's total cost. */
public var totalCost: Double?
/** TotalTokens is the conversation's total tokens. */
public var totalTokens: Int64?
/** Traces is how many traces the conversation holds. */
public var traces: Int64?
/** UserID is the end user the conversation is attributed to. */
public var userId: String?
public init(completionTokens: Int64? = nil, id: String? = nil, observations: Int64? = nil, promptTokens: Int64? = nil, totalCost: Double? = nil, totalTokens: Int64? = nil, traces: Int64? = nil, userId: String? = nil) {
self.completionTokens = completionTokens
self.id = id
self.observations = observations
self.promptTokens = promptTokens
self.totalCost = totalCost
self.totalTokens = totalTokens
self.traces = traces
self.userId = userId
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case completionTokens
case id
case observations
case promptTokens
case totalCost
case totalTokens
case traces
case userId
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(completionTokens, forKey: .completionTokens)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(observations, forKey: .observations)
try container.encodeIfPresent(promptTokens, forKey: .promptTokens)
try container.encodeIfPresent(totalCost, forKey: .totalCost)
try container.encodeIfPresent(totalTokens, forKey: .totalTokens)
try container.encodeIfPresent(traces, forKey: .traces)
try container.encodeIfPresent(userId, forKey: .userId)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension O11yO11yLLMSession: Identifiable {}