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

70 lines
2.3 KiB
Swift

//
// AskRequest.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct AskRequest: Sendable, Codable, ParameterConvertible, Hashable {
public var followUps: Bool?
public var language: String?
public var maxQueries: Int?
public var maxSources: Int?
public var mode: String?
public var model: String?
public var q: String?
public var question: String?
public var sources: [String]?
public var stream: Bool?
public var system: String?
public init(followUps: Bool? = nil, language: String? = nil, maxQueries: Int? = nil, maxSources: Int? = nil, mode: String? = nil, model: String? = nil, q: String? = nil, question: String? = nil, sources: [String]? = nil, stream: Bool? = nil, system: String? = nil) {
self.followUps = followUps
self.language = language
self.maxQueries = maxQueries
self.maxSources = maxSources
self.mode = mode
self.model = model
self.q = q
self.question = question
self.sources = sources
self.stream = stream
self.system = system
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case followUps
case language
case maxQueries
case maxSources
case mode
case model
case q
case question
case sources
case stream
case system
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(followUps, forKey: .followUps)
try container.encodeIfPresent(language, forKey: .language)
try container.encodeIfPresent(maxQueries, forKey: .maxQueries)
try container.encodeIfPresent(maxSources, forKey: .maxSources)
try container.encodeIfPresent(mode, forKey: .mode)
try container.encodeIfPresent(model, forKey: .model)
try container.encodeIfPresent(q, forKey: .q)
try container.encodeIfPresent(question, forKey: .question)
try container.encodeIfPresent(sources, forKey: .sources)
try container.encodeIfPresent(stream, forKey: .stream)
try container.encodeIfPresent(system, forKey: .system)
}
}