FirebaseAI Framework Reference

URLMetadata

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

Metadata for a single URL retrieved by 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.

  • Status of the URL retrieval.

    Declaration

    Swift

    public struct URLRetrievalStatus : DecodableProtoEnum, Hashable
  • The retrieved URL.

    Declaration

    Swift

    public let retrievedURL: URL?
  • The status of the URL retrieval.

    Declaration

    Swift

    public let retrievalStatus: URLRetrievalStatus
  • Declaration

    Swift

    public init(from decoder: any Decoder) throws