Files
zeekay b60f47a8bb Regenerate: the AI surface says what it answers
288 of hanzoai/ai's 294 operations now declare a response, against 1 before.
GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages —
every address a client actually calls — used to reach this client untyped,
because cloud's relay carried an operation's sentence and dropped the shapes
it named. It carries both now.

Fleet-wide the document goes from 69% to 81% of operations declaring what
comes back, which is where the ~208 new models here come from.
2026-08-28 15:52:19 -07:00

102 lines
3.6 KiB
Swift

//
// ModelTask.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ModelTask: Sendable, Codable, ParameterConvertible, Hashable {
public var activity: String?
public var createdTime: String?
public var displayName: String?
public var documentText: String?
public var documentUrl: String?
public var example: String?
public var grade: String?
public var labels: [String]?
public var log: String?
public var name: String?
public var owner: String?
public var path: String?
public var provider: String?
public var result: String?
public var scale: String?
public var score: Double?
public var subject: String?
public var topic: String?
public var type: String?
public init(activity: String? = nil, createdTime: String? = nil, displayName: String? = nil, documentText: String? = nil, documentUrl: String? = nil, example: String? = nil, grade: String? = nil, labels: [String]? = nil, log: String? = nil, name: String? = nil, owner: String? = nil, path: String? = nil, provider: String? = nil, result: String? = nil, scale: String? = nil, score: Double? = nil, subject: String? = nil, topic: String? = nil, type: String? = nil) {
self.activity = activity
self.createdTime = createdTime
self.displayName = displayName
self.documentText = documentText
self.documentUrl = documentUrl
self.example = example
self.grade = grade
self.labels = labels
self.log = log
self.name = name
self.owner = owner
self.path = path
self.provider = provider
self.result = result
self.scale = scale
self.score = score
self.subject = subject
self.topic = topic
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case activity
case createdTime
case displayName
case documentText
case documentUrl
case example
case grade
case labels
case log
case name
case owner
case path
case provider
case result
case scale
case score
case subject
case topic
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(activity, forKey: .activity)
try container.encodeIfPresent(createdTime, forKey: .createdTime)
try container.encodeIfPresent(displayName, forKey: .displayName)
try container.encodeIfPresent(documentText, forKey: .documentText)
try container.encodeIfPresent(documentUrl, forKey: .documentUrl)
try container.encodeIfPresent(example, forKey: .example)
try container.encodeIfPresent(grade, forKey: .grade)
try container.encodeIfPresent(labels, forKey: .labels)
try container.encodeIfPresent(log, forKey: .log)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(owner, forKey: .owner)
try container.encodeIfPresent(path, forKey: .path)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(result, forKey: .result)
try container.encodeIfPresent(scale, forKey: .scale)
try container.encodeIfPresent(score, forKey: .score)
try container.encodeIfPresent(subject, forKey: .subject)
try container.encodeIfPresent(topic, forKey: .topic)
try container.encodeIfPresent(type, forKey: .type)
}
}