FirebaseAI Framework Reference

Citation

@available(iOS15.0,macOS12.0,tvOS15.0,watchOS8.0,*)publicstructCitation:Sendable,Equatable
extensionCitation: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

    publicletstartIndex:Int
  • The exclusive end of a sequence in a model response that derives from a cited source.

    Declaration

    Swift

    publicletendIndex:Int
  • A link to the cited source, if available.

    Declaration

    Swift

    publicleturi:String?
  • The title of the cited source, if available.

    Declaration

    Swift

    publiclettitle:String?
  • The license the cited source work is distributed under, if specified.

    Declaration

    Swift

    publicletlicense:String?
  • The publication date of the cited source, if available.

    Tip

    DateComponents can be converted to aDate using thedate computed property.

    Declaration

    Swift

    publicletpublicationDate:DateComponents?
  • Declaration

    Swift

    publicinit(fromdecoder:anyDecoder)throws

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-20 UTC.