mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
46 lines
1.3 KiB
Swift
46 lines
1.3 KiB
Swift
//
|
|
// O11yUsageBucket.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yUsageBucket: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Calls is how many LLM calls landed in the bucket. */
|
|
public var calls: Int64?
|
|
/** CostCents is what they cost, in cents. */
|
|
public var costCents: Int64?
|
|
/** T is the bucket start, RFC3339 in UTC. */
|
|
public var t: String?
|
|
/** Tokens is how many tokens they consumed. */
|
|
public var tokens: Int64?
|
|
|
|
public init(calls: Int64? = nil, costCents: Int64? = nil, t: String? = nil, tokens: Int64? = nil) {
|
|
self.calls = calls
|
|
self.costCents = costCents
|
|
self.t = t
|
|
self.tokens = tokens
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case calls
|
|
case costCents
|
|
case t
|
|
case tokens
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(calls, forKey: .calls)
|
|
try container.encodeIfPresent(costCents, forKey: .costCents)
|
|
try container.encodeIfPresent(t, forKey: .t)
|
|
try container.encodeIfPresent(tokens, forKey: .tokens)
|
|
}
|
|
}
|
|
|