Skip to content

Commit 8f1dc74

Browse files
committed
[AI] Add Public Preview annotations to URL context APIs
1 parent 218716f commit 8f1dc74

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

FirebaseAI/Sources/Tool.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ public struct Tool: Sendable {
136136
///
137137
/// By including URLs in your request, the Gemini model will access the content from those pages
138138
/// to inform and enhance its response.
139+
///
140+
/// > Warning: URL context is a **Public Preview** feature, which means
141+
/// > that it is not subject to any SLA or deprecation policy and could change in
142+
/// > backwards-incompatible ways.
139143
public static func urlContext() -> Tool {
140144
return self.init(urlContext: URLContext())
141145
}

FirebaseAI/Sources/Types/Public/URLContextMetadata.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
// limitations under the License.
1414

1515
/// Metadata related to the ``Tool/urlContext()`` tool.
16+
///
17+
/// > Warning: URL context is a **Public Preview** feature, which means
18+
/// > that it is not subject to any SLA or deprecation policy and could change in
19+
/// > backwards-incompatible ways.
1620
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
1721
public struct URLContextMetadata: Sendable, Hashable {
1822
/// List of URL metadata used to provide context to the Gemini model.

FirebaseAI/Sources/Types/Public/URLMetadata.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
import Foundation
1616

1717
/// Metadata for a single URL retrieved by the ``Tool/urlContext()`` tool.
18+
///
19+
/// > Warning: URL context is a **Public Preview** feature, which means
20+
/// > that it is not subject to any SLA or deprecation policy and could change in
21+
/// > backwards-incompatible ways.
1822
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
1923
public struct URLMetadata: Sendable, Hashable {
2024
/// Status of the URL retrieval.

0 commit comments

Comments
 (0)