Skip to content

Commit 079b00c

Browse files
committed
Update sample app to match Schema changes
1 parent 6c47c13 commit 079b00c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

FirebaseVertexAI/Sample/FunctionCallingSample/ViewModels/FunctionCallingViewModel.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ class FunctionCallingViewModel: ObservableObject {
4545
name: "get_exchange_rate",
4646
description: "Get the exchange rate for currencies between countries",
4747
parameters: [
48-
"currency_from": .enumString(
49-
description: "The currency to convert from in ISO 4217 format",
50-
enumValues: "USD", "EUR", "JPY", "GBP", "AUD", "CAD"
48+
"currency_from": .enumeration(
49+
values: ["USD", "EUR", "JPY", "GBP", "AUD", "CAD"],
50+
description: "The currency to convert from in ISO 4217 format"
5151
),
52-
"currency_to": .enumString(
53-
description: "The currency to convert to in ISO 4217 format",
54-
enumValues: "USD", "EUR", "JPY", "GBP", "AUD", "CAD"
52+
"currency_to": .enumeration(
53+
values: ["USD", "EUR", "JPY", "GBP", "AUD", "CAD"],
54+
description: "The currency to convert to in ISO 4217 format"
5555
),
5656
]
5757
),

0 commit comments

Comments
 (0)