Skip to content

Commit fe885aa

Browse files
committed
Update available versions to exclude watchos
1 parent 407ee64 commit fe885aa

24 files changed

+62
-24
lines changed

FirebaseAI/Sources/Types/Internal/Live/BidiGenerateContentRealtimeInput.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ import Foundation
2828
/// to optimize for a fast start of the response from the model.
2929
/// - Is always assumed to be the user's input (cannot be used to populate
3030
/// conversation history).
31-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
31+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
32+
@available(watchOS, unavailable)
3233
struct BidiGenerateContentRealtimeInput: Encodable {
3334
/// These form the realtime audio input stream.
3435
let audio: InlineData?

FirebaseAI/Sources/Types/Internal/Live/BidiGenerateContentServerContent.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import Foundation
1919
///
2020
/// Content is generated as quickly as possible, and not in realtime. Clients
2121
/// may choose to buffer and play it out in realtime.
22-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
22+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
23+
@available(watchOS, unavailable)
2324
struct BidiGenerateContentServerContent: Decodable, Sendable {
2425
/// The content that the model has generated as part of the current
2526
/// conversation with the user.

FirebaseAI/Sources/Types/Internal/Live/BidiGenerateContentServerMessage.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
import Foundation
1616

1717
/// Response message for BidiGenerateContent RPC call.
18-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
18+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
19+
@available(watchOS, unavailable)
1920
struct BidiGenerateContentServerMessage: Sendable {
2021
/// The type of the message.
2122
enum MessageType: Sendable {
@@ -47,7 +48,8 @@ struct BidiGenerateContentServerMessage: Sendable {
4748

4849
// MARK: - Decodable
4950

50-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
51+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
52+
@available(watchOS, unavailable)
5153
extension BidiGenerateContentServerMessage: Decodable {
5254
enum CodingKeys: String, CodingKey {
5355
case setupComplete

FirebaseAI/Sources/Types/Internal/Live/BidiGenerateContentSetup.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import Foundation
2020
///
2121
/// Clients should wait for a `BidiGenerateContentSetupComplete` message before
2222
/// sending any additional messages.
23-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
23+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
24+
@available(watchOS, unavailable)
2425
struct BidiGenerateContentSetup: Encodable {
2526
/// The fully qualified name of the publisher model.
2627
///

FirebaseAI/Sources/Types/Internal/Live/BidiGenerateContentSetupComplete.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
import Foundation
1616

1717
/// Sent in response to a `BidiGenerateContentSetup` message from the client.
18-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
18+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
19+
@available(watchOS, unavailable)
1920
struct BidiGenerateContentSetupComplete: Decodable, Sendable {}

FirebaseAI/Sources/Types/Internal/Live/BidiGenerateContentToolCall.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import Foundation
1616

1717
/// Request for the client to execute the `function_calls` and return the
1818
/// responses with the matching `id`s.
19-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
19+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
20+
@available(watchOS, unavailable)
2021
struct BidiGenerateContentToolCall: Decodable, Sendable {
2122
/// The function call to be executed.
2223
let functionCalls: [FunctionCall]?

FirebaseAI/Sources/Types/Internal/Live/BidiGenerateContentToolCallCancellation.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import Foundation
1919
/// cancelled. If there were side-effects to those tool calls, clients may
2020
/// attempt to undo the tool calls. This message occurs only in cases where the
2121
/// clients interrupt server turns.
22-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
22+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
23+
@available(watchOS, unavailable)
2324
struct BidiGenerateContentToolCallCancellation: Decodable, Sendable {
2425
/// The ids of the tool calls to be cancelled.
2526
let ids: [String]?

FirebaseAI/Sources/Types/Internal/Live/BidiGenerateContentToolResponse.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import Foundation
2222
/// calling happens by exchanging the `Content` parts, while in the bidi
2323
/// GenerateContent APIs function calling happens over these dedicated set of
2424
/// messages.
25-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
25+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
26+
@available(watchOS, unavailable)
2627
struct BidiGenerateContentToolResponse: Encodable {
2728
/// The response to the function calls.
2829
let functionResponses: [FunctionResponse]?

FirebaseAI/Sources/Types/Internal/Live/BidiGenerateContentTranscription.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
15+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
16+
@available(watchOS, unavailable)
1617
struct BidiGenerateContentTranscription: Decodable, Sendable {
1718
let text: String?
1819
}

FirebaseAI/Sources/Types/Internal/Live/BidiGenerationConfig.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
import Foundation
1616

1717
/// Configuration options for live content generation.
18-
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
18+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
19+
@available(watchOS, unavailable)
1920
struct BidiGenerationConfig: Encodable, Sendable {
2021
let temperature: Float?
2122
let topP: Float?

0 commit comments

Comments
 (0)