Skip to content

Commit 03cffc3

Browse files
[AI] Add Public Preview annotations to URL context APIs (#15354)
Co-authored-by: Andrew Heard <[email protected]>
1 parent 218716f commit 03cffc3

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

FirebaseAI/Sources/Tool.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ 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 that it is not subject to
141+
/// > any SLA or deprecation policy and could change in backwards-incompatible ways.
139142
public static func urlContext() -> Tool {
140143
return self.init(urlContext: URLContext())
141144
}

FirebaseAI/Sources/Types/Public/URLContextMetadata.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
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 that it is not subject to
18+
/// > any SLA or deprecation policy and could change in backwards-incompatible ways.
1619
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
1720
public struct URLContextMetadata: Sendable, Hashable {
1821
/// List of URL metadata used to provide context to the Gemini model.

FirebaseAI/Sources/Types/Public/URLMetadata.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
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 that it is not subject to
20+
/// > any SLA or deprecation policy and could change in backwards-incompatible ways.
1821
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
1922
public struct URLMetadata: Sendable, Hashable {
2023
/// Status of the URL retrieval.

0 commit comments

Comments
 (0)