Citation
@available(iOS 15.0, macOS 11.0, *)
public struct Citation
extension Citation: Decodable
A struct describing a source attribution.
-
The inclusive beginning of a sequence in a model response that derives from a cited source.
Declaration
Swift
public let startIndex: Int
-
The exclusive end of a sequence in a model response that derives from a cited source.
Declaration
Swift
public let endIndex: Int
-
A link to the cited source.
Declaration
Swift
public let uri: String
-
The license the cited source work is distributed under, if specified.
Declaration
Swift
public let license: String?
-
Declaration
Swift
public init(from decoder: any Decoder) throws