FirebaseAI Framework Reference

WebGroundingChunk

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct WebGroundingChunk : Sendable, Equatable, Hashable
extension GroundingMetadata.WebGroundingChunk: Decodable

A grounding chunk sourced from the web.

  • uri

    The URI of the retrieved web page.

    Declaration

    Swift

    public let uri: String?
  • The title of the retrieved web page.

    Declaration

    Swift

    public let title: String?
  • The domain of the original URI from which the content was retrieved.

    This field is only populated when using the Vertex AI Gemini API.

    Declaration

    Swift

    public let domain: String?