FirebaseAILogic Framework Reference

URLContextMetadata

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

Metadata related to the urlContext() tool.

Warning

URL context is a Public Preview feature, which means that it is not subject to any SLA or deprecation policy and could change in backwards-incompatible ways.

  • List of URL metadata used to provide context to the Gemini model.

    Declaration

    Swift

    public let urlMetadata: [URLMetadata]
  • Declaration

    Swift

    public init(from decoder: any Decoder) throws