Files
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

46 lines
1.7 KiB
Swift

//
// WebSearchResults.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct WebSearchResults: Sendable, Codable, ParameterConvertible, Hashable {
/** Engines is one entry per engine asked, in the order they were asked. It is ADDITIVE to the SearXNG contract, which the LibreChat client ignores as an unknown field exactly as it ignores `engine` on a result. */
public var engines: [WebEngine]?
/** NumberOfResults is len(results) — what this answer carries, never an estimate of what the web holds. */
public var numberOfResults: Int64?
/** Query is the query that ran, echoed back. */
public var query: String?
/** Results are the merged hits, deduplicated by normalised URL and capped at 30. Always an array and never null: no hits is an ANSWER, not a fault. */
public var results: [WebResult]?
public init(engines: [WebEngine]? = nil, numberOfResults: Int64? = nil, query: String? = nil, results: [WebResult]? = nil) {
self.engines = engines
self.numberOfResults = numberOfResults
self.query = query
self.results = results
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case engines
case numberOfResults = "number_of_results"
case query
case results
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(engines, forKey: .engines)
try container.encodeIfPresent(numberOfResults, forKey: .numberOfResults)
try container.encodeIfPresent(query, forKey: .query)
try container.encodeIfPresent(results, forKey: .results)
}
}