FirebaseAI Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct CitationMetadata : Sendable
extension CitationMetadata: Decodable
A collection of source attributions for a piece of content.
-
A list of individual cited sources and the parts of the content to which they apply.
-
Declaration
Swift
public init(from decoder: any Decoder) throws
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["CitationMetadata \n\n @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)\n public struct CitationMetadata : Sendable\n\n extension CitationMetadata: Decodable\n\nA collection of source attributions for a piece of content.\n- `\n ``\n ``\n `\n\n [citations](#/s:10FirebaseAI16CitationMetadataV9citationsSayAA0C0VGvp)`\n ` \n A list of individual cited sources and the parts of the content to which they apply. \n\n Declaration \n Swift \n\n public let citations: [../Structs/Citation.html]\n\n[Codable Conformances](#/Codable-Conformances)\n\n- `\n ``\n ``\n `\n\n [init(from:)](#/s:Se4fromxs7Decoder_p_tKcfc)`\n ` \n\n Declaration \n Swift \n\n public init(from decoder: any Decoder) throws"]]